guy 7 years ago
parent
commit
497ee62de9
  1. 15
      bi/base.js
  2. 4
      bi/case.js
  3. 6
      bi/core.js
  4. 15
      docs/base.js
  5. 4
      docs/case.js
  6. 6
      docs/core.js
  7. 15
      src/base/layer/layer.floatbox.js
  8. 4
      src/case/clipboard/index.js
  9. 6
      src/core/ob.js

15
bi/base.js

@ -15109,15 +15109,16 @@ BI.FloatBox = BI.inherit(BI.Widget, {
populate: function (sectionProvider) {
var self = this;
if (this.currentSectionProvider && this.currentSectionProvider !== sectionProvider) {
this.currentSectionProvider.destroy();
}
this.currentSectionProvider = sectionProvider;
sectionProvider.rebuildNorth(this._north);
sectionProvider.rebuildCenter(this._center);
sectionProvider.rebuildSouth(this._south);
if (sectionProvider instanceof BI.Widget) {
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
}
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
},
show: function () {
@ -15140,6 +15141,10 @@ BI.FloatBox = BI.inherit(BI.Widget, {
setZindex: function (zindex) {
this.element.css({"z-index": zindex});
},
destroyed: function () {
this.currentSectionProvider && this.currentSectionProvider.destroy();
}
});

4
bi/case.js

@ -3567,9 +3567,7 @@ BI.ClipBoard = BI.inherit(BI.BasicButton, {
return BI.isFunction(o.copy) ? o.copy() : o.copy;
}
});
this.clipboard.on("success", function (e) {
o.afterCopy();
})
this.clipboard.on("success", o.afterCopy)
} else {
this.element.zclip({
path: BI.resourceURL + "/ZeroClipboard.swf",

6
bi/core.js

@ -4198,6 +4198,7 @@ BI.OB = function (config) {
$.extend(BI.OB.prototype, {
props: {},
init: null,
destroyed: null,
_defaultConfig: function (config) {
return {};
@ -4317,6 +4318,11 @@ $.extend(BI.OB.prototype, {
}
}
return true;
},
destroy: function () {
this.destroyed && this.destroyed();
this.purgeListeners();
}
});/**
* Widget超类

15
docs/base.js

@ -15109,15 +15109,16 @@ BI.FloatBox = BI.inherit(BI.Widget, {
populate: function (sectionProvider) {
var self = this;
if (this.currentSectionProvider && this.currentSectionProvider !== sectionProvider) {
this.currentSectionProvider.destroy();
}
this.currentSectionProvider = sectionProvider;
sectionProvider.rebuildNorth(this._north);
sectionProvider.rebuildCenter(this._center);
sectionProvider.rebuildSouth(this._south);
if (sectionProvider instanceof BI.Widget) {
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
}
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
},
show: function () {
@ -15140,6 +15141,10 @@ BI.FloatBox = BI.inherit(BI.Widget, {
setZindex: function (zindex) {
this.element.css({"z-index": zindex});
},
destroyed: function () {
this.currentSectionProvider && this.currentSectionProvider.destroy();
}
});

4
docs/case.js

@ -3567,9 +3567,7 @@ BI.ClipBoard = BI.inherit(BI.BasicButton, {
return BI.isFunction(o.copy) ? o.copy() : o.copy;
}
});
this.clipboard.on("success", function (e) {
o.afterCopy();
})
this.clipboard.on("success", o.afterCopy)
} else {
this.element.zclip({
path: BI.resourceURL + "/ZeroClipboard.swf",

6
docs/core.js

@ -14200,6 +14200,7 @@ BI.OB = function (config) {
$.extend(BI.OB.prototype, {
props: {},
init: null,
destroyed: null,
_defaultConfig: function (config) {
return {};
@ -14319,6 +14320,11 @@ $.extend(BI.OB.prototype, {
}
}
return true;
},
destroy: function () {
this.destroyed && this.destroyed();
this.purgeListeners();
}
});/**
* Widget超类

15
src/base/layer/layer.floatbox.js

@ -105,15 +105,16 @@ BI.FloatBox = BI.inherit(BI.Widget, {
populate: function (sectionProvider) {
var self = this;
if (this.currentSectionProvider && this.currentSectionProvider !== sectionProvider) {
this.currentSectionProvider.destroy();
}
this.currentSectionProvider = sectionProvider;
sectionProvider.rebuildNorth(this._north);
sectionProvider.rebuildCenter(this._center);
sectionProvider.rebuildSouth(this._south);
if (sectionProvider instanceof BI.Widget) {
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
}
sectionProvider.on(BI.PopoverSection.EVENT_CLOSE, function () {
self.close();
})
},
show: function () {
@ -136,6 +137,10 @@ BI.FloatBox = BI.inherit(BI.Widget, {
setZindex: function (zindex) {
this.element.css({"z-index": zindex});
},
destroyed: function () {
this.currentSectionProvider && this.currentSectionProvider.destroy();
}
});

4
src/case/clipboard/index.js

@ -25,9 +25,7 @@ BI.ClipBoard = BI.inherit(BI.BasicButton, {
return BI.isFunction(o.copy) ? o.copy() : o.copy;
}
});
this.clipboard.on("success", function (e) {
o.afterCopy();
})
this.clipboard.on("success", o.afterCopy)
} else {
this.element.zclip({
path: BI.resourceURL + "/ZeroClipboard.swf",

6
src/core/ob.js

@ -15,6 +15,7 @@ BI.OB = function (config) {
$.extend(BI.OB.prototype, {
props: {},
init: null,
destroyed: null,
_defaultConfig: function (config) {
return {};
@ -134,5 +135,10 @@ $.extend(BI.OB.prototype, {
}
}
return true;
},
destroy: function () {
this.destroyed && this.destroyed();
this.purgeListeners();
}
});
Loading…
Cancel
Save