diff --git a/src/core/widget.js b/src/core/widget.js index 4fcc9ca82..6c30a0f7e 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -7,12 +7,6 @@ */ !(function () { - var lazy = (typeof document !== "undefined" && - typeof document.documentMode === "number") || - (typeof navigator !== "undefined" && - typeof navigator.userAgent === "string" && - /\bEdge\/\d/.test(navigator.userAgent)); - BI.Widget = BI.inherit(BI.OB, { _defaultConfig: function () { return BI.extend(BI.Widget.superclass._defaultConfig.apply(this), { @@ -193,13 +187,12 @@ } this.beforeMount && this.beforeMount(); this._isMounted = true; - !lazy && this._mountChildren && this._mountChildren(); + this._mountChildren && this._mountChildren(); BI.each(this._children, function (i, widget) { !self.isEnabled() && widget._setEnable(false); !self.isValid() && widget._setValid(false); widget._mount && widget._mount(); }); - lazy && this._mountChildren && this._mountChildren(); this.mounted && this.mounted(); return true; },