From f5f37597aadd5e255de39fe764e63e0ff4c4b308 Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 22 Dec 2013 04:36:44 -0500 Subject: [PATCH] Fixes detatch to only occur on dimmer when element is not inside dimmer --- src/modules/dimmer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/dimmer.js b/src/modules/dimmer.js index b3d5f814d..aa1c7b1c5 100755 --- a/src/modules/dimmer.js +++ b/src/modules/dimmer.js @@ -136,11 +136,11 @@ $.fn.dimmer = function(parameters) { addContent: function(element) { var - $content = $(element).detach() + $content = $(element) ; module.debug('Add content to dimmer', $content); if($content.parent()[0] !== $dimmer[0]) { - $dimmer.append($content); + $content.detach().appendTo($dimmer); } },