Don't populate list until elements have been set

Closes #174
This commit is contained in:
Kevin Sawicki
2013-01-25 10:28:07 -08:00
parent 73aab4f49a
commit fb4623d5d3
2 changed files with 13 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ class SelectList extends View
@loading.text(message).show()
populateList: ->
return unless @array?
filterQuery = @miniEditor.getText()
if filterQuery.length
filteredArray = fuzzyFilter(@array, filterQuery, key: @filterKey)