From ad2de99dfcb7ffc55dc57451cf1cd60dfa68dbce Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Tue, 16 Jul 2013 21:51:45 -0400 Subject: [PATCH] .closest finds 0 or 1 closest matching parent - update syntax --- coffee/chosen.jquery.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index 733db183293..7b24e81346c 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -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()