ScrollResize: remove resize helper iframe on table destruction

pull/545/head
Joost Molenkamp 2 years ago
parent 6315d1af8d
commit b308a5b5ba

@ -83,6 +83,12 @@ var ScrollResize = function ( dt )
that._size(); that._size();
} ); } );
var onDestroy = function () {
dt.off('.pageResize', onDestroy);
this.s.obj && this.s.obj.remove();
}.bind(this);
dt.on('destroy.pageResize', onDestroy);
this._attach(); this._attach();
this._size(); this._size();
}; };
@ -154,6 +160,8 @@ ScrollResize.prototype = {
obj obj
.appendTo( this.s.host ) .appendTo( this.s.host )
.attr( 'data', 'about:blank' ); .attr( 'data', 'about:blank' );
this.s.obj = obj;
} }
}; };

Loading…
Cancel
Save