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