From cc9eeade0beb6f1608808cd0965969f4f8d8df31 Mon Sep 17 00:00:00 2001 From: Max Ogden Date: Wed, 3 Aug 2011 19:59:30 -0400 Subject: [PATCH] fix bug with dialog close listeners stacking up --- attachments/script/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/attachments/script/util.js b/attachments/script/util.js index d81a3124..21dcc306 100755 --- a/attachments/script/util.js +++ b/attachments/script/util.js @@ -68,6 +68,7 @@ var util = function() { function hide( thing ) { $('.' + thing ).hide(); $('.' + thing + '-overlay').hide(); + if (thing === "dialog") app.emitter.clear('esc'); // todo more elegant solution } function position( thing, elem, offset ) {