windy 8 years ago
parent
commit
d9d7141b56
  1. 3
      bi/core.js
  2. 3
      dist/core.js
  3. 3
      src/core/widget.js

3
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");

3
dist/core.js vendored

@ -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");

3
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");

Loading…
Cancel
Save