Browse Source

loader 私有_populate和公有populate分离

es6
Dailer 6 years ago
parent
commit
6081119afe
  1. 15
      dist/base.js
  2. 15
      dist/bundle.ie.js
  3. 26
      dist/bundle.ie.min.js
  4. 15
      dist/bundle.js
  5. 54
      dist/bundle.min.js
  6. 15
      dist/fineui.ie.js
  7. 26
      dist/fineui.ie.min.js
  8. 15
      dist/fineui.js
  9. 52
      dist/fineui.min.js
  10. 15
      dist/fineui_without_jquery_polyfill.js
  11. 2
      dist/utils.min.js
  12. 15
      src/base/combination/loader.js

15
dist/base.js vendored

@ -4036,6 +4036,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -4068,10 +4069,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -4123,14 +4124,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -4153,6 +4156,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

15
dist/bundle.ie.js vendored

@ -39122,6 +39122,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -39154,10 +39155,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -39209,14 +39210,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -39239,6 +39242,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

26
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/bundle.js vendored

@ -39526,6 +39526,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -39558,10 +39559,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -39613,14 +39614,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -39643,6 +39646,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui.ie.js vendored

@ -39364,6 +39364,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -39396,10 +39397,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -39451,14 +39452,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -39481,6 +39484,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

26
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui.js vendored

@ -39768,6 +39768,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -39800,10 +39801,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -39855,14 +39856,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -39885,6 +39888,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

52
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui_without_jquery_polyfill.js vendored

@ -27377,6 +27377,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -27409,10 +27410,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -27464,14 +27465,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -27494,6 +27497,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

15
src/base/combination/loader.js

@ -74,6 +74,7 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group = BI.createWidget(o.el, {
type: "bi.button_group",
chooseType: 0,
items: o.items,
behaviors: {},
layouts: [{
type: "bi.vertical"
@ -106,10 +107,10 @@ BI.Loader = BI.inherit(BI.Widget, {
}))));
o.isDefaultInit && BI.isEmpty(o.items) && BI.nextTick(BI.bind(function () {
o.isDefaultInit && BI.isEmpty(o.items) && this.populate();
o.isDefaultInit && BI.isEmpty(o.items) && this._populate();
}, this));
if (BI.isNotEmptyArray(o.items)) {
this.populate(o.items);
this._populate(o.items);
}
},
@ -161,14 +162,16 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.addItems.apply(this.button_group, arguments);
},
populate: function (items) {
_populate: function (items) {
var self = this, o = this.options;
if (arguments.length === 0 && (BI.isFunction(o.itemsCreator))) {
o.itemsCreator.apply(this, [{times: 1}, function () {
if (arguments.length === 0) {
throw new Error("arguments can not be null!!!");
}
self.populate.apply(self, arguments);
self._populate.apply(self, arguments);
self.button_group.populate.apply(self.button_group, arguments);
o.onLoaded();
}]);
return;
@ -191,6 +194,10 @@ BI.Loader = BI.inherit(BI.Widget, {
this.prev.invisible();
}
}
},
populate: function (items) {
this._populate(items);
this.button_group.populate.apply(this.button_group, arguments);
},

Loading…
Cancel
Save