From 380777a3d76e9fcf49f13b7ef98c60925421dbac Mon Sep 17 00:00:00 2001 From: Dailer Date: Tue, 21 Aug 2018 20:03:05 +0800 Subject: [PATCH] update --- src/core/widget.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; },