corrade-nucleus-nucleons
/base/000_base/js/wm/wm.js |
@@ -46,7 +46,7 @@ |
var src = $(this).attr('src'); |
if(src === undefined) |
return; |
nucleonScripts[src] = $(this).get(0); |
nucleonScripts[src] = $(this); |
}); |
// Remove scripts from the nucleon if they are already added to the DOM. |
var nowScripts = $(document).find('script').each(function() { |
@@ -53,8 +53,7 @@ |
var src = $(this).attr('src'); |
if(nucleonScripts[src] === undefined) |
return; |
alert(nucleonScripts[src]); |
$(data).remove(nucleonScripts[src]); |
nucleonScripts[src].remove(); |
}); |
$(data).hide().appendTo('#window-manager-desktop').fadeIn(750); |
}).done(function(data) { |