guy 7 years ago
parent
commit
c3381ac589
  1. 26
      dist/bundle.js
  2. 6
      dist/bundle.min.js
  3. 26
      dist/core.js
  4. 26
      dist/fineui.js
  5. 4
      dist/fineui.min.js
  6. 16
      src/core/inject.js
  7. 8
      src/core/ob.js
  8. 1
      src/core/widget.js
  9. 25
      utils/utils.js

26
dist/bundle.js vendored

@ -12358,6 +12358,13 @@ _.extend(BI.OB.prototype, {
}
},
//释放当前对象
_purgeRef: function(){
if (this.options.ref) {
this.options.ref.call(null);
}
},
_getEvents: function () {
if (!$.isArray(this.events)) {
this.events = [];
@ -12453,6 +12460,7 @@ _.extend(BI.OB.prototype, {
destroy: function () {
this.destroyed && this.destroyed();
this._purgeRef();
this.purgeListeners();
}
});/**
@ -12916,6 +12924,7 @@ BI.Widget = BI.inherit(BI.OB, {
this.__d();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this._purgeRef();
this.purgeListeners();
}
});(function () {
@ -20348,25 +20357,26 @@ BI.extend(BI.DOM, {
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var fns = points[type][action].before;
if (fns) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments);
}
});
}
fns = points[type][action].after;
if (fns) {
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments);
}
});
}
}
}
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/core.js vendored

@ -12358,6 +12358,13 @@ _.extend(BI.OB.prototype, {
}
},
//释放当前对象
_purgeRef: function(){
if (this.options.ref) {
this.options.ref.call(null);
}
},
_getEvents: function () {
if (!$.isArray(this.events)) {
this.events = [];
@ -12453,6 +12460,7 @@ _.extend(BI.OB.prototype, {
destroy: function () {
this.destroyed && this.destroyed();
this._purgeRef();
this.purgeListeners();
}
});/**
@ -12916,6 +12924,7 @@ BI.Widget = BI.inherit(BI.OB, {
this.__d();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this._purgeRef();
this.purgeListeners();
}
});(function () {
@ -20348,25 +20357,26 @@ BI.extend(BI.DOM, {
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var fns = points[type][action].before;
if (fns) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments);
}
});
}
fns = points[type][action].after;
if (fns) {
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments);
}
});
}
}
}
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);

26
dist/fineui.js vendored

@ -12559,6 +12559,13 @@ _.extend(BI.OB.prototype, {
}
},
//释放当前对象
_purgeRef: function(){
if (this.options.ref) {
this.options.ref.call(null);
}
},
_getEvents: function () {
if (!$.isArray(this.events)) {
this.events = [];
@ -12654,6 +12661,7 @@ _.extend(BI.OB.prototype, {
destroy: function () {
this.destroyed && this.destroyed();
this._purgeRef();
this.purgeListeners();
}
});/**
@ -13117,6 +13125,7 @@ BI.Widget = BI.inherit(BI.OB, {
this.__d();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this._purgeRef();
this.purgeListeners();
}
});(function () {
@ -20549,25 +20558,26 @@ BI.extend(BI.DOM, {
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var fns = points[type][action].before;
if (fns) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments);
}
});
}
fns = points[type][action].after;
if (fns) {
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments);
}
});
}
}
}
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

16
src/core/inject.js

@ -87,19 +87,19 @@
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var fns = points[type][action].before;
if (fns) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments);
}
});
}
fns = points[type][action].after;
if (fns) {
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments);
}
});
}

8
src/core/ob.js

@ -44,6 +44,13 @@ _.extend(BI.OB.prototype, {
}
},
//释放当前对象
_purgeRef: function(){
if (this.options.ref) {
this.options.ref.call(null);
}
},
_getEvents: function () {
if (!$.isArray(this.events)) {
this.events = [];
@ -139,6 +146,7 @@ _.extend(BI.OB.prototype, {
destroy: function () {
this.destroyed && this.destroyed();
this._purgeRef();
this.purgeListeners();
}
});

1
src/core/widget.js

@ -459,6 +459,7 @@ BI.Widget = BI.inherit(BI.OB, {
this.__d();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this._purgeRef();
this.purgeListeners();
}
});

25
utils/utils.js

@ -3365,6 +3365,13 @@ _.extend(BI.OB.prototype, {
}
},
//释放当前对象
_purgeRef: function(){
if (this.options.ref) {
this.options.ref.call(null);
}
},
_getEvents: function () {
if (!$.isArray(this.events)) {
this.events = [];
@ -3460,6 +3467,7 @@ _.extend(BI.OB.prototype, {
destroy: function () {
this.destroyed && this.destroyed();
this._purgeRef();
this.purgeListeners();
}
});(function () {
@ -4238,25 +4246,26 @@ _.extend(BI.OB.prototype, {
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var fns = points[type][action].before;
if (fns) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = bfns.length; i < len; i++) {
bfns[i].apply(inst, arguments);
}
});
}
fns = points[type][action].after;
if (fns) {
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function () {
for (var i = 0, len = fns.length; i < len; i++) {
fns[i].apply(inst, arguments);
for (var i = 0, len = afns.length; i < len; i++) {
afns[i].apply(inst, arguments);
}
});
}
}
}
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);

Loading…
Cancel
Save