Browse Source

update

master
guy 6 years ago
parent
commit
0db73dc20d
  1. 26
      dist/bundle.js
  2. 6
      dist/bundle.min.js
  3. 22
      dist/core.js
  4. 26
      dist/fineui.js
  5. 6
      dist/fineui.min.js
  6. 4
      dist/fix/fix.compact.js
  7. 22
      src/core/widget.js

26
dist/bundle.js vendored

@ -21399,8 +21399,6 @@ _.extend(BI.OB.prototype, {
this._initElementHeight(); this._initElementHeight();
this._initVisual(); this._initVisual();
this._initState(); this._initState();
if (this.isVisible()) {
this.rendered = true;
if (this.beforeInit) { if (this.beforeInit) {
this.__asking = true; this.__asking = true;
this.beforeInit(BI.bind(this._render, this)); this.beforeInit(BI.bind(this._render, this));
@ -21410,10 +21408,6 @@ _.extend(BI.OB.prototype, {
} else { } else {
this._render(); this._render();
} }
}
if (this._isRoot) {
this._mount();
}
}, },
_render: function () { _render: function () {
@ -21525,7 +21519,7 @@ _.extend(BI.OB.prototype, {
_mount: function () { _mount: function () {
var self = this; var self = this;
var isMounted = this._isMounted; var isMounted = this._isMounted;
if (this._isMounting || isMounted || !this.isVisible() || this.__asking === true) { if (isMounted || this.__asking === true) {
return; return;
} }
if (this._isRoot === true) { if (this._isRoot === true) {
@ -21536,19 +21530,6 @@ _.extend(BI.OB.prototype, {
if (!isMounted) { if (!isMounted) {
return; return;
} }
this._isMounting = true;
if (!this.rendered) {
if (this.beforeInit) {
this.__asking = true;
this.beforeInit(BI.bind(this._render, this));
if (this.__asking === true) {
this.__async = true;
}
} else {
this._render();
}
}
this.beforeMount && this.beforeMount(); this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
!lazy && this._mountChildren && this._mountChildren(); !lazy && this._mountChildren && this._mountChildren();
@ -21559,7 +21540,6 @@ _.extend(BI.OB.prototype, {
}); });
lazy && this._mountChildren && this._mountChildren(); lazy && this._mountChildren && this._mountChildren();
this.mounted && this.mounted(); this.mounted && this.mounted();
this._isMounting = false;
return true; return true;
}, },
@ -81382,9 +81362,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
function createStore() { function createStore() {
var needPop = false; var needPop = false;
if (!this._storeCreated && window.Fix && this._store && this.isVisible()) { if (window.Fix && this._store) {
var store = findStore(this.options.context || this.options.element); var store = findStore(this.options.context || this.options.element);
this._storeCreated = true;
if (store) { if (store) {
pushTarget(store); pushTarget(store);
needPop = true; needPop = true;
@ -81446,7 +81425,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
_.each(["_mount"], function (name) { _.each(["_mount"], function (name) {
var old = BI.Widget.prototype[name]; var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () { old && (BI.Widget.prototype[name] = function () {
createStore.call(this);
this.store && pushTarget(this.store); this.store && pushTarget(this.store);
var res = old.apply(this, arguments); var res = old.apply(this, arguments);
this.store && popTarget(); this.store && popTarget();

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

22
dist/core.js vendored

@ -21399,8 +21399,6 @@ _.extend(BI.OB.prototype, {
this._initElementHeight(); this._initElementHeight();
this._initVisual(); this._initVisual();
this._initState(); this._initState();
if (this.isVisible()) {
this.rendered = true;
if (this.beforeInit) { if (this.beforeInit) {
this.__asking = true; this.__asking = true;
this.beforeInit(BI.bind(this._render, this)); this.beforeInit(BI.bind(this._render, this));
@ -21410,10 +21408,6 @@ _.extend(BI.OB.prototype, {
} else { } else {
this._render(); this._render();
} }
}
if (this._isRoot) {
this._mount();
}
}, },
_render: function () { _render: function () {
@ -21525,7 +21519,7 @@ _.extend(BI.OB.prototype, {
_mount: function () { _mount: function () {
var self = this; var self = this;
var isMounted = this._isMounted; var isMounted = this._isMounted;
if (this._isMounting || isMounted || !this.isVisible() || this.__asking === true) { if (isMounted || this.__asking === true) {
return; return;
} }
if (this._isRoot === true) { if (this._isRoot === true) {
@ -21536,19 +21530,6 @@ _.extend(BI.OB.prototype, {
if (!isMounted) { if (!isMounted) {
return; return;
} }
this._isMounting = true;
if (!this.rendered) {
if (this.beforeInit) {
this.__asking = true;
this.beforeInit(BI.bind(this._render, this));
if (this.__asking === true) {
this.__async = true;
}
} else {
this._render();
}
}
this.beforeMount && this.beforeMount(); this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
!lazy && this._mountChildren && this._mountChildren(); !lazy && this._mountChildren && this._mountChildren();
@ -21559,7 +21540,6 @@ _.extend(BI.OB.prototype, {
}); });
lazy && this._mountChildren && this._mountChildren(); lazy && this._mountChildren && this._mountChildren();
this.mounted && this.mounted(); this.mounted && this.mounted();
this._isMounting = false;
return true; return true;
}, },

26
dist/fineui.js vendored

@ -21620,8 +21620,6 @@ _.extend(BI.OB.prototype, {
this._initElementHeight(); this._initElementHeight();
this._initVisual(); this._initVisual();
this._initState(); this._initState();
if (this.isVisible()) {
this.rendered = true;
if (this.beforeInit) { if (this.beforeInit) {
this.__asking = true; this.__asking = true;
this.beforeInit(BI.bind(this._render, this)); this.beforeInit(BI.bind(this._render, this));
@ -21631,10 +21629,6 @@ _.extend(BI.OB.prototype, {
} else { } else {
this._render(); this._render();
} }
}
if (this._isRoot) {
this._mount();
}
}, },
_render: function () { _render: function () {
@ -21746,7 +21740,7 @@ _.extend(BI.OB.prototype, {
_mount: function () { _mount: function () {
var self = this; var self = this;
var isMounted = this._isMounted; var isMounted = this._isMounted;
if (this._isMounting || isMounted || !this.isVisible() || this.__asking === true) { if (isMounted || this.__asking === true) {
return; return;
} }
if (this._isRoot === true) { if (this._isRoot === true) {
@ -21757,19 +21751,6 @@ _.extend(BI.OB.prototype, {
if (!isMounted) { if (!isMounted) {
return; return;
} }
this._isMounting = true;
if (!this.rendered) {
if (this.beforeInit) {
this.__asking = true;
this.beforeInit(BI.bind(this._render, this));
if (this.__asking === true) {
this.__async = true;
}
} else {
this._render();
}
}
this.beforeMount && this.beforeMount(); this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
!lazy && this._mountChildren && this._mountChildren(); !lazy && this._mountChildren && this._mountChildren();
@ -21780,7 +21761,6 @@ _.extend(BI.OB.prototype, {
}); });
lazy && this._mountChildren && this._mountChildren(); lazy && this._mountChildren && this._mountChildren();
this.mounted && this.mounted(); this.mounted && this.mounted();
this._isMounting = false;
return true; return true;
}, },
@ -81603,9 +81583,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
function createStore() { function createStore() {
var needPop = false; var needPop = false;
if (!this._storeCreated && window.Fix && this._store && this.isVisible()) { if (window.Fix && this._store) {
var store = findStore(this.options.context || this.options.element); var store = findStore(this.options.context || this.options.element);
this._storeCreated = true;
if (store) { if (store) {
pushTarget(store); pushTarget(store);
needPop = true; needPop = true;
@ -81667,7 +81646,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
_.each(["_mount"], function (name) { _.each(["_mount"], function (name) {
var old = BI.Widget.prototype[name]; var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () { old && (BI.Widget.prototype[name] = function () {
createStore.call(this);
this.store && pushTarget(this.store); this.store && pushTarget(this.store);
var res = old.apply(this, arguments); var res = old.apply(this, arguments);
this.store && popTarget(); this.store && popTarget();

6
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/fix/fix.compact.js vendored

@ -108,9 +108,8 @@
function createStore() { function createStore() {
var needPop = false; var needPop = false;
if (!this._storeCreated && window.Fix && this._store && this.isVisible()) { if (window.Fix && this._store) {
var store = findStore(this.options.context || this.options.element); var store = findStore(this.options.context || this.options.element);
this._storeCreated = true;
if (store) { if (store) {
pushTarget(store); pushTarget(store);
needPop = true; needPop = true;
@ -172,7 +171,6 @@
_.each(["_mount"], function (name) { _.each(["_mount"], function (name) {
var old = BI.Widget.prototype[name]; var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () { old && (BI.Widget.prototype[name] = function () {
createStore.call(this);
this.store && pushTarget(this.store); this.store && pushTarget(this.store);
var res = old.apply(this, arguments); var res = old.apply(this, arguments);
this.store && popTarget(); this.store && popTarget();

22
src/core/widget.js

@ -60,8 +60,6 @@
this._initElementHeight(); this._initElementHeight();
this._initVisual(); this._initVisual();
this._initState(); this._initState();
if (this.isVisible()) {
this.rendered = true;
if (this.beforeInit) { if (this.beforeInit) {
this.__asking = true; this.__asking = true;
this.beforeInit(BI.bind(this._render, this)); this.beforeInit(BI.bind(this._render, this));
@ -71,10 +69,6 @@
} else { } else {
this._render(); this._render();
} }
}
if (this._isRoot) {
this._mount();
}
}, },
_render: function () { _render: function () {
@ -186,7 +180,7 @@
_mount: function () { _mount: function () {
var self = this; var self = this;
var isMounted = this._isMounted; var isMounted = this._isMounted;
if (this._isMounting || isMounted || !this.isVisible() || this.__asking === true) { if (isMounted || this.__asking === true) {
return; return;
} }
if (this._isRoot === true) { if (this._isRoot === true) {
@ -197,19 +191,6 @@
if (!isMounted) { if (!isMounted) {
return; return;
} }
this._isMounting = true;
if (!this.rendered) {
if (this.beforeInit) {
this.__asking = true;
this.beforeInit(BI.bind(this._render, this));
if (this.__asking === true) {
this.__async = true;
}
} else {
this._render();
}
}
this.beforeMount && this.beforeMount(); this.beforeMount && this.beforeMount();
this._isMounted = true; this._isMounted = true;
!lazy && this._mountChildren && this._mountChildren(); !lazy && this._mountChildren && this._mountChildren();
@ -220,7 +201,6 @@
}); });
lazy && this._mountChildren && this._mountChildren(); lazy && this._mountChildren && this._mountChildren();
this.mounted && this.mounted(); this.mounted && this.mounted();
this._isMounting = false;
return true; return true;
}, },

Loading…
Cancel
Save