mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
proofed the SearchView's runSearch
This commit is contained in:
parent
2855d2a402
commit
63401025f6
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ module.exports = class SearchView extends View
|
|||
searchInput.focus()
|
||||
|
||||
runSearch: =>
|
||||
return unless @$el
|
||||
term = @$el.find('input#search').val()
|
||||
return if @sameSearch(term)
|
||||
@removeOldSearch()
|
||||
|
|
Loading…
Reference in a new issue