mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Merge pull request #1254 from rubenvereecken/teeny_weeny_search_fix
proofed the SearchView's runSearch
This commit is contained in:
commit
f61541d4ba
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ module.exports = class SearchView extends View
|
|||
searchInput.focus()
|
||||
|
||||
runSearch: =>
|
||||
return if @destroyed
|
||||
term = @$el.find('input#search').val()
|
||||
return if @sameSearch(term)
|
||||
@removeOldSearch()
|
||||
|
|
Loading…
Reference in a new issue