SeriesModel对象的getClass方法为undefined #4397

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

Comments

Projects
None yet
2 participants
@lnlfps

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 label Nov 3, 2016

@100pah 100pah closed this in 3b7680c Nov 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment