remove 'returns'; ensure value passed to setText is a string

This commit is contained in:
Derek Greentree
2013-01-17 17:26:07 -08:00
parent acaf3d9fd3
commit b594244007

View File

@@ -110,14 +110,14 @@ class FuzzyFinder extends SelectList
@rootView.open(paths[0])
else if paths?.length
@attach()
@miniEditor.setText(theWord))
@miniEditor.setText(''+theWord))
populateProjectPaths: (options = {}) ->
if @projectPaths?.length > 0
listedItems =
if options.filter?
@projectPaths.filter (path) ->
return path.indexOf(options.filter) >= 0
path.indexOf(options.filter) >= 0
else
@projectPaths
@setArray(listedItems)
@@ -140,7 +140,7 @@ class FuzzyFinder extends SelectList
listedItems =
if options.filter?
@projectPaths.filter (path) ->
return path.indexOf(options.filter) >= 0
path.indexOf(options.filter) >= 0
else
@projectPaths