Skip to content

Commit

Permalink
Revert "not explode on empty selects with allow_single_deselect"
Browse files Browse the repository at this point in the history
This reverts commit 9150281.
  • Loading branch information
jerrett committed Nov 15, 2011
1 parent acf540f commit 5d0e585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chosen/chosen.jquery.js
Expand Up @@ -113,7 +113,7 @@
this.results_showing = false;
this.result_highlighted = null;
this.result_single_selected = null;
this.allow_single_deselect = (this.options.allow_single_deselect != null) && this.form_field.options[0] && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
this.allow_single_deselect = (this.options.allow_single_deselect != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
this.disable_search_threshold = this.options.disable_search_threshold || 0;
this.choices = 0;
return this.results_none_found = this.options.no_results_text || "No results match";
Expand Down

0 comments on commit 5d0e585

Please sign in to comment.