guy 7 years ago
parent
commit
4912463a93
  1. 12
      dist/bundle.js
  2. 2
      dist/bundle.min.js
  3. 12
      dist/core.js
  4. 12
      dist/fineui.js
  5. 4
      dist/fineui.min.js
  6. 12
      src/core/ob.js
  7. 12
      utils/utils.js

12
dist/bundle.js vendored

@ -12322,7 +12322,7 @@ BI.OB = function (config) {
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = ($ || _).extend(this._defaultConfig(config), props, config);
this.options = (window.$ || window._).extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
};
@ -12343,7 +12343,7 @@ _.extend(BI.OB.prototype, {
_initListeners: function () {
var self = this;
if (this.options.listeners != null) {
$.each(this.options.listeners, function (i, lis) {
_.each(this.options.listeners, function (lis) {
(lis.target ? lis.target : self)[lis.once ? "once" : "on"]
(lis.eventName, _.bind(lis.action, self));
});
@ -12366,7 +12366,7 @@ _.extend(BI.OB.prototype, {
},
_getEvents: function () {
if (!$.isArray(this.events)) {
if (!_.isArray(this.events)) {
this.events = [];
}
return this.events;
@ -12380,7 +12380,7 @@ _.extend(BI.OB.prototype, {
on: function (eventName, fn) {
eventName = eventName.toLowerCase();
var fns = this._getEvents()[eventName];
if (!$.isArray(fns)) {
if (!_.isArray(fns)) {
fns = [];
this._getEvents()[eventName] = fns;
}
@ -12412,9 +12412,9 @@ _.extend(BI.OB.prototype, {
delete this._getEvents()[eventName];
} else {
var fns = this._getEvents()[eventName];
if ($.isArray(fns)) {
if (_.isArray(fns)) {
var newFns = [];
$.each(fns, function (idx, ifn) {
_.each(fns, function (ifn) {
if (ifn != fn) {
newFns.push(ifn);
}

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/core.js vendored

@ -12322,7 +12322,7 @@ BI.OB = function (config) {
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = ($ || _).extend(this._defaultConfig(config), props, config);
this.options = (window.$ || window._).extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
};
@ -12343,7 +12343,7 @@ _.extend(BI.OB.prototype, {
_initListeners: function () {
var self = this;
if (this.options.listeners != null) {
$.each(this.options.listeners, function (i, lis) {
_.each(this.options.listeners, function (lis) {
(lis.target ? lis.target : self)[lis.once ? "once" : "on"]
(lis.eventName, _.bind(lis.action, self));
});
@ -12366,7 +12366,7 @@ _.extend(BI.OB.prototype, {
},
_getEvents: function () {
if (!$.isArray(this.events)) {
if (!_.isArray(this.events)) {
this.events = [];
}
return this.events;
@ -12380,7 +12380,7 @@ _.extend(BI.OB.prototype, {
on: function (eventName, fn) {
eventName = eventName.toLowerCase();
var fns = this._getEvents()[eventName];
if (!$.isArray(fns)) {
if (!_.isArray(fns)) {
fns = [];
this._getEvents()[eventName] = fns;
}
@ -12412,9 +12412,9 @@ _.extend(BI.OB.prototype, {
delete this._getEvents()[eventName];
} else {
var fns = this._getEvents()[eventName];
if ($.isArray(fns)) {
if (_.isArray(fns)) {
var newFns = [];
$.each(fns, function (idx, ifn) {
_.each(fns, function (ifn) {
if (ifn != fn) {
newFns.push(ifn);
}

12
dist/fineui.js vendored

@ -12523,7 +12523,7 @@ BI.OB = function (config) {
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = ($ || _).extend(this._defaultConfig(config), props, config);
this.options = (window.$ || window._).extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
};
@ -12544,7 +12544,7 @@ _.extend(BI.OB.prototype, {
_initListeners: function () {
var self = this;
if (this.options.listeners != null) {
$.each(this.options.listeners, function (i, lis) {
_.each(this.options.listeners, function (lis) {
(lis.target ? lis.target : self)[lis.once ? "once" : "on"]
(lis.eventName, _.bind(lis.action, self));
});
@ -12567,7 +12567,7 @@ _.extend(BI.OB.prototype, {
},
_getEvents: function () {
if (!$.isArray(this.events)) {
if (!_.isArray(this.events)) {
this.events = [];
}
return this.events;
@ -12581,7 +12581,7 @@ _.extend(BI.OB.prototype, {
on: function (eventName, fn) {
eventName = eventName.toLowerCase();
var fns = this._getEvents()[eventName];
if (!$.isArray(fns)) {
if (!_.isArray(fns)) {
fns = [];
this._getEvents()[eventName] = fns;
}
@ -12613,9 +12613,9 @@ _.extend(BI.OB.prototype, {
delete this._getEvents()[eventName];
} else {
var fns = this._getEvents()[eventName];
if ($.isArray(fns)) {
if (_.isArray(fns)) {
var newFns = [];
$.each(fns, function (idx, ifn) {
_.each(fns, function (ifn) {
if (ifn != fn) {
newFns.push(ifn);
}

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
src/core/ob.js

@ -8,7 +8,7 @@ BI.OB = function (config) {
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = ($ || _).extend(this._defaultConfig(config), props, config);
this.options = (window.$ || window._).extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
};
@ -29,7 +29,7 @@ _.extend(BI.OB.prototype, {
_initListeners: function () {
var self = this;
if (this.options.listeners != null) {
$.each(this.options.listeners, function (i, lis) {
_.each(this.options.listeners, function (lis) {
(lis.target ? lis.target : self)[lis.once ? "once" : "on"]
(lis.eventName, _.bind(lis.action, self));
});
@ -52,7 +52,7 @@ _.extend(BI.OB.prototype, {
},
_getEvents: function () {
if (!$.isArray(this.events)) {
if (!_.isArray(this.events)) {
this.events = [];
}
return this.events;
@ -66,7 +66,7 @@ _.extend(BI.OB.prototype, {
on: function (eventName, fn) {
eventName = eventName.toLowerCase();
var fns = this._getEvents()[eventName];
if (!$.isArray(fns)) {
if (!_.isArray(fns)) {
fns = [];
this._getEvents()[eventName] = fns;
}
@ -98,9 +98,9 @@ _.extend(BI.OB.prototype, {
delete this._getEvents()[eventName];
} else {
var fns = this._getEvents()[eventName];
if ($.isArray(fns)) {
if (_.isArray(fns)) {
var newFns = [];
$.each(fns, function (idx, ifn) {
_.each(fns, function (ifn) {
if (ifn != fn) {
newFns.push(ifn);
}

12
utils/utils.js

@ -3329,7 +3329,7 @@ BI.OB = function (config) {
if (BI.isFunction(this.props)) {
props = this.props(config);
}
this.options = ($ || _).extend(this._defaultConfig(config), props, config);
this.options = (window.$ || window._).extend(this._defaultConfig(config), props, config);
this._init();
this._initRef();
};
@ -3350,7 +3350,7 @@ _.extend(BI.OB.prototype, {
_initListeners: function () {
var self = this;
if (this.options.listeners != null) {
$.each(this.options.listeners, function (i, lis) {
_.each(this.options.listeners, function (lis) {
(lis.target ? lis.target : self)[lis.once ? "once" : "on"]
(lis.eventName, _.bind(lis.action, self));
});
@ -3373,7 +3373,7 @@ _.extend(BI.OB.prototype, {
},
_getEvents: function () {
if (!$.isArray(this.events)) {
if (!_.isArray(this.events)) {
this.events = [];
}
return this.events;
@ -3387,7 +3387,7 @@ _.extend(BI.OB.prototype, {
on: function (eventName, fn) {
eventName = eventName.toLowerCase();
var fns = this._getEvents()[eventName];
if (!$.isArray(fns)) {
if (!_.isArray(fns)) {
fns = [];
this._getEvents()[eventName] = fns;
}
@ -3419,9 +3419,9 @@ _.extend(BI.OB.prototype, {
delete this._getEvents()[eventName];
} else {
var fns = this._getEvents()[eventName];
if ($.isArray(fns)) {
if (_.isArray(fns)) {
var newFns = [];
$.each(fns, function (idx, ifn) {
_.each(fns, function (ifn) {
if (ifn != fn) {
newFns.push(ifn);
}

Loading…
Cancel
Save