You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/13 06:09:49 UTC

[GitHub] [incubator-echarts] Ovilia commented on issue #7959: API: echarts.clear() 该方法清空当前实例。使用该方法后调用 getOption 方法返回并不是空对象

Ovilia commented on issue #7959: API: echarts.clear() 该方法清空当前实例。使用该方法后调用 getOption 方法返回并不是空对象
URL: https://github.com/apache/incubator-echarts/issues/7959#issuecomment-565314214
 
 
   我的理解是,`myChart.setOption({}, true)` 会和默认的配置项合并,所以 `myChart.getOption()` 是不会返回空的。我认为应该是 `clear()` 方法里 `myChart.setOption({}, true)` 之后,记录一下清空状态,然后 `getOption` 判断清空后返回 `{}`。 @100pah 是这样吗?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org