Add dispose to the correct tree
This commit is contained in:
parent
6a4341e2cf
commit
ac88ca4ac2
1 changed files with 12 additions and 3 deletions
|
@ -715,7 +715,17 @@ ImageHistoryTree.prototype.toggle_ = function(d) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
/**
|
||||||
|
* Disposes of the tree.
|
||||||
|
*/
|
||||||
|
ImageHistoryTree.prototype.dispose = function() {
|
||||||
|
var container = this.container_ ;
|
||||||
|
$('#' + container).removeOverscroll();
|
||||||
|
document.getElementById(container).innerHTML = '';
|
||||||
|
};
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Based off of http://bl.ocks.org/mbostock/1093025 by Mike Bostock (@mbostock)
|
* Based off of http://bl.ocks.org/mbostock/1093025 by Mike Bostock (@mbostock)
|
||||||
|
@ -814,8 +824,7 @@ ImageFileChangeTree.prototype.notifyResized = function() {
|
||||||
*/
|
*/
|
||||||
ImageFileChangeTree.prototype.dispose = function() {
|
ImageFileChangeTree.prototype.dispose = function() {
|
||||||
var container = this.container_ ;
|
var container = this.container_ ;
|
||||||
$('#' + container).removeOverscroll();
|
document.getElementById(container).innerHTML = '';
|
||||||
document.getElememtById(container).innerHTML = '';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue