Changed setValue to clear

This commit is contained in:
jos 2015-12-25 14:01:01 +01:00
parent de314b897e
commit fb4ec75d56
2 changed files with 4 additions and 5 deletions

View File

@ -285,11 +285,10 @@ SearchBox.prototype._onKeyUp = function (event) {
};
/**
* Set search text. Will apply a new search
* @param {string} value
* Clear the search results
*/
SearchBox.prototype.setValue = function (value) {
this.dom.search.value = value;
SearchBox.prototype.clear = function () {
this.dom.search.value = '';
this._onSearch();
};

View File

@ -128,7 +128,7 @@ treemode.set = function (json, name) {
}
// clear search
this.searchBox.setValue('');
this.searchBox.clear();
};
/**