Merge pull request #545 from JMolenkamp/master

ScrollResize: remove resize helper iframe on table destruction
pull/546/head
Allan Jardine 2 years ago committed by GitHub
commit 9b7b8feb0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,7 +160,9 @@ 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