From d9d7141b56feb01fcd965f5df21535fa7e9092be Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 28 Mar 2017 15:18:57 +0800 Subject: [PATCH] update --- bi/core.js | 3 +++ dist/core.js | 3 +++ src/core/widget.js | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bi/core.js b/bi/core.js index 4d76894e99..0162112735 100644 --- a/bi/core.js +++ b/bi/core.js @@ -4671,6 +4671,9 @@ BI.Widget = BI.inherit(BI.OB, { widget = name; name = widget.getName(); } + if(BI.isKey(name)){ + name = name + ""; + } name = name || widget.getName() || BI.uniqueId("widget"); if (this._children[name]) { throw new Error("name has already been existed"); diff --git a/dist/core.js b/dist/core.js index 9a8ab007e8..0b852a35d0 100644 --- a/dist/core.js +++ b/dist/core.js @@ -14583,6 +14583,9 @@ BI.Widget = BI.inherit(BI.OB, { widget = name; name = widget.getName(); } + if(BI.isKey(name)){ + name = name + ""; + } name = name || widget.getName() || BI.uniqueId("widget"); if (this._children[name]) { throw new Error("name has already been existed"); diff --git a/src/core/widget.js b/src/core/widget.js index 29bc55f37a..bcb00e3b80 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -247,6 +247,9 @@ BI.Widget = BI.inherit(BI.OB, { widget = name; name = widget.getName(); } + if(BI.isKey(name)){ + name = name + ""; + } name = name || widget.getName() || BI.uniqueId("widget"); if (this._children[name]) { throw new Error("name has already been existed");