Permalink
Browse files

Fix #9217. oldIE error when changing detached elements, close gh-861

  • Loading branch information...
gnarf authored and dmethvin committed Jul 13, 2012
1 parent aa3fabc commit 74cc5b0984335532ab272b8286566000c4bf3daf
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/effects.js
@@ -426,6 +426,17 @@ Tween.propHooks = {
}
};
// Remove in 2.0 - this supports IE8's panic based approach
// to setting things on disconnected nodes
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
set: function( tween ) {
if ( tween.elem.nodeType && tween.elem.parentNode ) {
tween.elem[ tween.prop ] = tween.now;
}
}
};
function isHidden( elem, el ) {
elem = el || elem;
return curCSS( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem );

0 comments on commit 74cc5b0

Please sign in to comment.