Commit bcfa69c3246ad421ea5c02a07baf2a2b8a48e7a0
1 parent
563db87f
search panel controllet bug fix
Showing
1 changed file
with
3 additions
and
6 deletions
controllets/search-panel-controllet/search-panel-controllet.html
| @@ -169,12 +169,9 @@ Example: | @@ -169,12 +169,9 @@ Example: | ||
| 169 | * @param {Event} e | 169 | * @param {Event} e |
| 170 | */ | 170 | */ |
| 171 | _valueChanged : function(oldvalue, newValue){ | 171 | _valueChanged : function(oldvalue, newValue){ |
| 172 | - if(newValue != undefined) | ||
| 173 | - { | ||
| 174 | - clearTimeout(this.timer); | ||
| 175 | - this.timer = setTimeout(this.fire('search-panel-controllet_content-changed', {searchKey: this.searchKey, id : this.id}), 500); | ||
| 176 | - //this.fire('search-panel-controllet_content-changed', {searchKey: this.searchKey, id: this.id}); | ||
| 177 | - } | 172 | + var t = this; |
| 173 | + clearTimeout(this.timer); | ||
| 174 | + this.timer = setTimeout(function(){t.fire('search-panel-controllet_content-changed', {searchKey: t.searchKey, id : t.id})}, 500); | ||
| 178 | }, | 175 | }, |
| 179 | /** | 176 | /** |
| 180 | * It returns the value in text area | 177 | * It returns the value in text area |