Browse Source

Fixes bug in detatch where before was being used instead of insertBefore causing issues with siblings

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

4
src/modules/transition.js

@ -170,11 +170,11 @@ $.fn.transition = function() {
$parentElement = $module.parent(),
$nextElement = $module.next()
;
if($nextElement.size() == 0) {
if($nextElement.size() === 0) {
$module.detach().appendTo($parentElement);
}
else {
$module.detach().before($nextElement);
$module.detach().insertBefore($nextElement);
}
},
repaint: function() {

Loading…
Cancel
Save