Skip to content

Commit

Permalink
Use coffeescript existential operator and commit js changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfiller committed Nov 15, 2011
1 parent 9dd4fb5 commit 16b6f50
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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].text === "" ? this.options.allow_single_deselect : false;
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != 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 16b6f50

Please sign in to comment.