Permalink
Browse files

fixed incorrect negation

Calling this.selected_item_focus_handle.remove() only makes sense if this.selected_item_focus_handle exists in the first place.
  • Loading branch information...
1 parent 5d8f803 commit 1bdbaa00884a680dc8c9599b6cd2e80a3d38b494 @simmerer simmerer committed Mar 26, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 Chosen.js
View
@@ -771,7 +771,7 @@ define(["dojo/_base/declare",
domClass.add(this.container, 'chzn-disabled');
domAttr.set(this.search_field, 'disabled', true);
if(!this.is_multiple) {
- if(!this.selected_item_focus_handle) {
+ if(this.selected_item_focus_handle) {
this.selected_item_focus_handle.remove();
}
}
@@ -949,4 +949,4 @@ define(["dojo/_base/declare",
}
return Chosen;
-});
+});

0 comments on commit 1bdbaa0

Please sign in to comment.