From acf540ff21266657f4054d4fc227c7e136dbf47f Mon Sep 17 00:00:00 2001 From: Jerrett Date: Mon, 14 Nov 2011 16:18:18 -0800 Subject: [PATCH] changes to .coffee file instead --- coffee/lib/abstract-chosen.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffee/lib/abstract-chosen.coffee b/coffee/lib/abstract-chosen.coffee index e1dcf4c..3d9222f 100644 --- a/coffee/lib/abstract-chosen.coffee +++ b/coffee/lib/abstract-chosen.coffee @@ -27,7 +27,7 @@ class AbstractChosen @results_showing = false @result_highlighted = null @result_single_selected = null - @allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0].text == "" then @options.allow_single_deselect else false + @allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0] and @form_field.options[0].text == "" then @options.allow_single_deselect else false @disable_search_threshold = @options.disable_search_threshold || 0 @choices = 0 @results_none_found = @options.no_results_text or "No results match"