From 49c7d2e0f68ae698719b610f96a6090aa1e47d55 Mon Sep 17 00:00:00 2001 From: pfiller Date: Tue, 26 Jul 2011 14:27:44 -0400 Subject: [PATCH] Replace a reference to @container.id with @container_id --- chosen/chosen.proto.js | 2 +- coffee/chosen.proto.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js index 3086f3e..aa41d76 100644 --- a/chosen/chosen.proto.js +++ b/chosen/chosen.proto.js @@ -188,7 +188,7 @@ return this.search_field.focus(); }; Chosen.prototype.test_active_click = function(evt) { - if (evt.target.up('#' + this.container.id)) { + if (evt.target.up('#' + this.container_id)) { return this.active_field = true; } else { return this.close_field(); diff --git a/coffee/chosen.proto.coffee b/coffee/chosen.proto.coffee index c162cb8..b8ad47f 100644 --- a/coffee/chosen.proto.coffee +++ b/coffee/chosen.proto.coffee @@ -164,7 +164,7 @@ class Chosen test_active_click: (evt) -> - if evt.target.up('#' + @container.id) + if evt.target.up('#' + @container_id) @active_field = true else this.close_field()