Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Use detach() instead of remove. Fixes #543
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jun 23, 2013
1 parent de8a799 commit 32227f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/content.js
Expand Up @@ -26,7 +26,7 @@ PROTOTYPE._update = function(content, element, reposition) {

// Append new content if its a DOM array and show it if hidden
if(content.jquery && content.length > 0) {
element.empty().append( content.css({ display: 'block' }) );
element.children().detach().end().append( content.css({ display: 'block' }) );
}

// Content is a regular string, insert the new content
Expand Down

0 comments on commit 32227f1

Please sign in to comment.