proofed the SearchView's runSearch

This commit is contained in:
Ruben Vereecken 2014-07-04 15:13:06 +02:00
parent 2855d2a402
commit 63401025f6

View file

@ -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()