commit
b4f9f343d2
|
@ -144,3 +144,8 @@ Model.prototype.resize = function () {
|
||||||
|
|
||||||
this.render();
|
this.render();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Model.prototype.dispose = function () {
|
||||||
|
this.renderer.forceContextLoss();
|
||||||
|
this.renderer.dispose();
|
||||||
|
};
|
||||||
|
|
|
@ -1729,6 +1729,7 @@ TABS.pid_tuning.cleanup = function (callback) {
|
||||||
|
|
||||||
if (self.model) {
|
if (self.model) {
|
||||||
$(window).off('resize', $.proxy(self.model.resize, self.model));
|
$(window).off('resize', $.proxy(self.model.resize, self.model));
|
||||||
|
self.model.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(window).off('resize', $.proxy(this.updateRatesLabels, this));
|
$(window).off('resize', $.proxy(this.updateRatesLabels, this));
|
||||||
|
|
|
@ -605,6 +605,7 @@ TABS.receiver.cleanup = function (callback) {
|
||||||
$(window).off('resize', this.resize);
|
$(window).off('resize', this.resize);
|
||||||
if (this.model) {
|
if (this.model) {
|
||||||
$(window).off('resize', $.proxy(this.model.resize, this.model));
|
$(window).off('resize', $.proxy(this.model.resize, this.model));
|
||||||
|
this.model.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.keepRendering = false;
|
this.keepRendering = false;
|
||||||
|
|
|
@ -341,6 +341,7 @@ TABS.setup.renderModel = function () {
|
||||||
TABS.setup.cleanup = function (callback) {
|
TABS.setup.cleanup = function (callback) {
|
||||||
if (this.model) {
|
if (this.model) {
|
||||||
$(window).off('resize', $.proxy(this.model.resize, this.model));
|
$(window).off('resize', $.proxy(this.model.resize, this.model));
|
||||||
|
this.model.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
|
|
Loading…
Reference in New Issue