Browse Source

Fixes detatch to only occur on dimmer when element is not inside dimmer

pull/470/merge
jlukic 11 years ago
parent
commit
f5f37597aa
1 changed files with 2 additions and 2 deletions
  1. 4
      src/modules/dimmer.js

4
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);
}
},

Loading…
Cancel
Save