Fixed error "Cannot read property 'clear' of undefined" thrown if search option set to `false`.
This commit is contained in:
parent
23c580a2ec
commit
ca21876fa3
|
@ -145,7 +145,9 @@ treemode.set = function (json, name) {
|
|||
}
|
||||
|
||||
// clear search
|
||||
if (this.searchBox) {
|
||||
this.searchBox.clear();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue