From e2593c98af31ced0979359a75d5ffebbacefe610 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 31 Mar 2015 11:31:10 -0400 Subject: [PATCH] #2042 add delegated events to nag (stupid nag) --- src/definitions/modules/nag.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/definitions/modules/nag.js b/src/definitions/modules/nag.js index 56fb8127a..25b0338a1 100644 --- a/src/definitions/modules/nag.js +++ b/src/definitions/modules/nag.js @@ -76,11 +76,9 @@ $.fn.nag = function(parameters) { module.verbose('Initializing element'); $module + .on('click' + eventNamespace, selector.close, module.dismiss) .data(moduleNamespace, module) ; - $close - .on('click' + eventNamespace, module.dismiss) - ; if(settings.detachable && $module.parent()[0] !== $context[0]) { $module