Browse Source

KERNEL-927 refactor: 修改生命周期

master
iapyang 5 years ago
parent
commit
e599177080
  1. 21
      dist/2.0/fineui.ie.js
  2. 54
      dist/2.0/fineui.ie.min.js
  3. 21
      dist/2.0/fineui.js
  4. 2
      dist/2.0/fineui.min.css
  5. 54
      dist/2.0/fineui.min.js
  6. 21
      dist/bundle.ie.js
  7. 54
      dist/bundle.ie.min.js
  8. 21
      dist/bundle.js
  9. 54
      dist/bundle.min.js
  10. 8
      dist/core.js
  11. 21
      dist/fineui.ie.js
  12. 76
      dist/fineui.ie.min.js
  13. 21
      dist/fineui.js
  14. 2
      dist/fineui.min.css
  15. 76
      dist/fineui.min.js
  16. 21
      dist/fineui_without_jquery_polyfill.js
  17. 6
      dist/fix/fix.ie.js
  18. 6
      dist/fix/fix.js
  19. 8
      dist/utils.js
  20. 8
      dist/utils.min.js
  21. 7
      dist/widget.js
  22. 8
      src/core/inject.js

21
dist/2.0/fineui.ie.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -37746,9 +37748,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true; this.alive = true;
this.options = model || {}; this.options = model || {};
this.model = { this.model = {
@ -37780,7 +37784,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions); initMethods(this, actions);
this.created && this.created(); this.created && this.created();
allModelInstances[this._modelHashId] = this; allModelInstances[this._modelHashId] = this;
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82062,11 +82066,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

54
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/2.0/fineui.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -38159,9 +38161,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) { if (model instanceof Observer || model instanceof Model) {
model = model.model; model = model.model;
} }
@ -38192,7 +38196,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;
} }
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82466,11 +82470,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

54
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/bundle.ie.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -37746,9 +37748,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true; this.alive = true;
this.options = model || {}; this.options = model || {};
this.model = { this.model = {
@ -37780,7 +37784,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions); initMethods(this, actions);
this.created && this.created(); this.created && this.created();
allModelInstances[this._modelHashId] = this; allModelInstances[this._modelHashId] = this;
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82062,11 +82066,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

54
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/bundle.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -38159,9 +38161,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) { if (model instanceof Observer || model instanceof Model) {
model = model.model; model = model.model;
} }
@ -38192,7 +38196,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;
} }
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82466,11 +82470,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/core.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };

21
dist/fineui.ie.js vendored

@ -21222,6 +21222,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -21234,9 +21235,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -37991,9 +37993,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true; this.alive = true;
this.options = model || {}; this.options = model || {};
this.model = { this.model = {
@ -38025,7 +38029,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions); initMethods(this, actions);
this.created && this.created(); this.created && this.created();
allModelInstances[this._modelHashId] = this; allModelInstances[this._modelHashId] = this;
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82307,11 +82311,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

76
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui.js vendored

@ -21222,6 +21222,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -21234,9 +21235,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -38404,9 +38406,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) { if (model instanceof Observer || model instanceof Model) {
model = model.model; model = model.model;
} }
@ -38437,7 +38441,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;
} }
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -82711,11 +82715,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

76
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui_without_jquery_polyfill.js vendored

@ -20723,6 +20723,7 @@ _.extend(BI, {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -20735,9 +20736,10 @@ _.extend(BI, {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };
@ -26979,9 +26981,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) { if (model instanceof Observer || model instanceof Model) {
model = model.model; model = model.model;
} }
@ -27012,7 +27016,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;
} }
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};
@ -65317,11 +65321,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

6
dist/fix/fix.ie.js vendored

@ -920,9 +920,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true; this.alive = true;
this.options = model || {}; this.options = model || {};
this.model = { this.model = {
@ -954,7 +956,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions); initMethods(this, actions);
this.created && this.created(); this.created && this.created();
allModelInstances[this._modelHashId] = this; allModelInstances[this._modelHashId] = this;
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};

6
dist/fix/fix.js vendored

@ -1333,9 +1333,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var Model = function () { var Model = function () {
function Model(model) { function Model() {
_classCallCheck(this, Model); _classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) { if (model instanceof Observer || model instanceof Model) {
model = model.model; model = model.model;
} }
@ -1366,7 +1368,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;
} }
} };
Model.prototype._init = function _init() {}; Model.prototype._init = function _init() {};

8
dist/utils.js vendored

@ -13505,6 +13505,7 @@ if (!_global.BI) {
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -13517,9 +13518,10 @@ if (!_global.BI) {
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/widget.js vendored

@ -20129,11 +20129,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
}, },
items: [{ items: [{
el: { el: {
type: "bi.text_button", type: "bi.text",
width: 16, cls: "slider-button bi-high-light-border",
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
ref: function () { ref: function () {
self.slider = this; self.slider = this;
} }

8
src/core/inject.js

@ -156,6 +156,7 @@
BI.Models = { BI.Models = {
getModel: function (type, config) { getModel: function (type, config) {
var inst = new modelInjection[type](config); var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type); callPoint(inst, type);
return inst; return inst;
} }
@ -168,9 +169,10 @@
if (stores[type]) { if (stores[type]) {
return stores[type]; return stores[type];
} }
stores[type] = new storeInjection[type](config); var inst = stores[type] = new storeInjection[type](config);
callPoint(stores[type], type); inst._constructor && inst._constructor(config);
return stores[type]; callPoint(inst, type);
return inst;
} }
}; };

Loading…
Cancel
Save