Browse Source

优化一下

es6
guy 4 years ago
parent
commit
db356a0903
  1. 5
      src/core/widget.js

5
src/core/widget.js

@ -610,7 +610,10 @@
if (o.element) { if (o.element) {
return BI.$(o.element); return BI.$(o.element);
} }
return BI.$(document.createElement(o.tagName)); if (o.tagName) {
return BI.$(document.createElement(o.tagName));
}
return BI.$(document.createDocumentFragment());
} }
return BI.$(widget); return BI.$(widget);
}, },

Loading…
Cancel
Save