Skip to content

Commit

Permalink
.closest finds 0 or 1 closest matching parent - update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pfiller committed Jul 17, 2013
1 parent 3721468 commit ad2de99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Chosen extends AbstractChosen


test_active_click: (evt) ->
if @container[0] is $(evt.target).closest('.chzn-container')[0]
if @container.is($(evt.target).closest('.chzn-container'))
@active_field = true
else
this.close_field()
Expand Down

0 comments on commit ad2de99

Please # to comment.