Skip to content

Commit

Permalink
Merge pull request #2944 from harvesthq/remove-nonsense
Browse files Browse the repository at this point in the history
Remove nonsensical if-statement.
  • Loading branch information
stof committed Jan 30, 2018
2 parents f86fa9b + ebd3579 commit 87d4ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Chosen extends AbstractChosen

if @is_multiple
@search_choices.find("li.search-choice").remove()
else if not @is_multiple
else
this.single_set_selected_text()
if @disable_search or @form_field.options.length <= @disable_search_threshold
@search_field[0].readOnly = true
Expand Down
2 changes: 1 addition & 1 deletion coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class @Chosen extends AbstractChosen

if @is_multiple
@search_choices.select("li.search-choice").invoke("remove")
else if not @is_multiple
else
this.single_set_selected_text()
if @disable_search or @form_field.options.length <= @disable_search_threshold
@search_field.readOnly = true
Expand Down

0 comments on commit 87d4ecd

Please # to comment.