提交 3ae5d32c 编写于 作者: L lang

Data type check

上级 c0d8b428
......@@ -209,6 +209,10 @@ define(function (require) {
listProto.initData = function (data, nameList, dimValueGetter) {
data = data || [];
if (!zrUtil.isArray(data)) {
throw new Error('Invalid data.');
}
this._rawData = data;
// Clear
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册