diff --git a/dist/base.js b/dist/base.js index b5ffbe7b9..ed3f5395e 100644 --- a/dist/base.js +++ b/dist/base.js @@ -5673,7 +5673,7 @@ BI.Popover = BI.inherit(BI.Widget, { BI.Resizers._resize(); }, function () { self.tracker.releaseMouseMoves(); - }, window); + }, _global); var items = { north: { el: { diff --git a/dist/bundle.js b/dist/bundle.js index 8777062bf..a88817e07 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }/** * @license @@ -16974,7 +16975,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(window).resize(fn); + BI.Widget._renderEngine.createElement(_global).resize(fn); }, _resize: function (ev) { @@ -40960,7 +40961,7 @@ BI.Popover = BI.inherit(BI.Widget, { BI.Resizers._resize(); }, function () { self.tracker.releaseMouseMoves(); - }, window); + }, _global); var items = { north: { el: { @@ -81527,7 +81528,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { function createStore() { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { var store = findStore(this.options.context || this.options.element); if (store) { pushTarget(store); @@ -81559,7 +81560,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { var _render = BI.Widget.prototype._render; BI.Widget.prototype._render = function () { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { needPop = true; pushTarget(this.store); initWatch(this, this.watch); diff --git a/dist/core.js b/dist/core.js index 8348dc7be..b7fb3ca73 100644 --- a/dist/core.js +++ b/dist/core.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }/** * @license @@ -16974,7 +16975,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(window).resize(fn); + BI.Widget._renderEngine.createElement(_global).resize(fn); }, _resize: function (ev) { diff --git a/dist/fineui.js b/dist/fineui.js index 08c73b571..3bff59b97 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }// Production steps of ECMA-262, Edition 5, 15.4.4.14 // Reference: http://es5.github.io/#x15.4.4.14 @@ -257,7 +258,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }/** * @license @@ -17215,7 +17217,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(window).resize(fn); + BI.Widget._renderEngine.createElement(_global).resize(fn); }, _resize: function (ev) { @@ -41201,7 +41203,7 @@ BI.Popover = BI.inherit(BI.Widget, { BI.Resizers._resize(); }, function () { self.tracker.releaseMouseMoves(); - }, window); + }, _global); var items = { north: { el: { @@ -81768,7 +81770,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { function createStore() { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { var store = findStore(this.options.context || this.options.element); if (store) { pushTarget(store); @@ -81800,7 +81802,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { var _render = BI.Widget.prototype._render; BI.Widget.prototype._render = function () { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { needPop = true; pushTarget(this.store); initWatch(this, this.watch); diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index 03b6c2e43..b2e6ec69a 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }/** * @license @@ -16720,7 +16721,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(window).resize(fn); + BI.Widget._renderEngine.createElement(_global).resize(fn); }, _resize: function (ev) { @@ -28892,7 +28893,7 @@ BI.Popover = BI.inherit(BI.Widget, { BI.Resizers._resize(); }, function () { self.tracker.releaseMouseMoves(); - }, window); + }, _global); var items = { north: { el: { @@ -64655,7 +64656,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { function createStore() { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { var store = findStore(this.options.context || this.options.element); if (store) { pushTarget(store); @@ -64687,7 +64688,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { var _render = BI.Widget.prototype._render; BI.Widget.prototype._render = function () { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { needPop = true; pushTarget(this.store); initWatch(this, this.watch); diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 9bf6a5d30..12e111713 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -108,7 +108,7 @@ function createStore() { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { var store = findStore(this.options.context || this.options.element); if (store) { pushTarget(store); @@ -140,7 +140,7 @@ var _render = BI.Widget.prototype._render; BI.Widget.prototype._render = function () { var needPop = false; - if (window.Fix && this._store) { + if (_global.Fix && this._store) { needPop = true; pushTarget(this.store); initWatch(this, this.watch); diff --git a/dist/polyfill.js b/dist/polyfill.js index 3e8f4f8f9..a0c43d3b4 100644 --- a/dist/polyfill.js +++ b/dist/polyfill.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }// Production steps of ECMA-262, Edition 5, 15.4.4.14 // Reference: http://es5.github.io/#x15.4.4.14 diff --git a/dist/utils.js b/dist/utils.js index d7a57c7cd..d50ad06dc 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -16,7 +16,8 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; }/** * @license diff --git a/src/base/layer/layer.popover.js b/src/base/layer/layer.popover.js index e2fb1a38b..d6d6080bb 100644 --- a/src/base/layer/layer.popover.js +++ b/src/base/layer/layer.popover.js @@ -41,7 +41,7 @@ BI.Popover = BI.inherit(BI.Widget, { BI.Resizers._resize(); }, function () { self.tracker.releaseMouseMoves(); - }, window); + }, _global); var items = { north: { el: { diff --git a/src/core/controller/controller.resizer.js b/src/core/controller/controller.resizer.js index 80a5386f1..1fb3d08c7 100644 --- a/src/core/controller/controller.resizer.js +++ b/src/core/controller/controller.resizer.js @@ -18,7 +18,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(window).resize(fn); + BI.Widget._renderEngine.createElement(_global).resize(fn); }, _resize: function (ev) { diff --git a/src/core/foundation.js b/src/core/foundation.js index 66833d39e..e8555e32e 100644 --- a/src/core/foundation.js +++ b/src/core/foundation.js @@ -16,6 +16,7 @@ if (typeof window !== "undefined") { } if (_global.BI == null) { _global.BI = {prepares: []}; -} else { +} +if(_global.BI.prepares == null) { _global.BI.prepares = []; } \ No newline at end of file