From c6d9528c5c1b8c03ecc20fcf14c88393663cf451 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 15 Jun 2011 14:21:40 -0700 Subject: [PATCH] simplify --- 4chan_x.user.js | 5 +---- script.coffee | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 7c2703678..2a41e71b1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1007,12 +1007,9 @@ $.append(overlay, dialog); $.append(d.body, overlay); options.cb.time.call($('input[name=time]', dialog)); - $.bind(overlay, 'click', function() { + return $.bind(overlay, 'click', function() { return $.rm(overlay); }); - return $.bind(dialog.firstElementChild, 'click', function(e) { - return e.stopPropagation(); - }); }, tab: function() { var content, div, _i, _len, _results; diff --git a/script.coffee b/script.coffee index bc4519372..08f32fe1a 100644 --- a/script.coffee +++ b/script.coffee @@ -790,7 +790,6 @@ options = options.cb.time.call $('input[name=time]', dialog) $.bind overlay, 'click', -> $.rm overlay - $.bind dialog.firstElementChild, 'click', (e) -> e.stopPropagation() tab: -> content = $$ '#main, #flavors, #time'