Fixes bug when calling destroy with detachGrid=false. Thanks @jhpedemonte.

This commit is contained in:
d 2016-02-24 11:05:54 -05:00
commit 735ffa2129
4 changed files with 6 additions and 6 deletions

View file

@ -1105,7 +1105,7 @@
$(window).off('resize', this.onResizeHandler);
this.disable();
if (typeof detachGrid != 'undefined' && !detachGrid) {
this.removeAll(true);
this.removeAll(false);
} else {
this.container.remove();
}