Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeriesModel对象的getClass方法为undefined #4397

Closed
lnlfps opened this issue Nov 3, 2016 · 0 comments
Closed

SeriesModel对象的getClass方法为undefined #4397

lnlfps opened this issue Nov 3, 2016 · 0 comments
Labels
pending We are not sure about whether this is a bug/new feature.

Comments

@lnlfps
Copy link

lnlfps commented Nov 3, 2016

问题简述 (One-line summary)

参照echarts-wordcloud扩展,写自定义扩展时,调用echarts.extendSeriesModel({type:'series.custom'},'series.pie')方法出现异常,错误提示是因为SeriesModel的getClass方法未定义, 断点跟踪问题到SeriesModel的申明处var SeriesModel = ComponentModel.extend({...,此语句未执行前ComponentModel拥有getClass方法,当这句话执行完成得到的SeriesModel却没有getClass方法。

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):3.3.1 webpack方式集成
  • 浏览器类型和版本 (Browser version):Chrome
  • 操作系统类型和版本 (OS Version):Mac

可能哪里有问题 (What went wrong)

个人猜测,有可能clazz.js文件中,extend方法在多层继承以后丢失了getClass方法。

@pissang pissang added the pending We are not sure about whether this is a bug/new feature. label Nov 3, 2016
@100pah 100pah closed this as completed in 3b7680c Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants