Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #9217. oldIE error when changing detached elements, close gh-861
  • Loading branch information
gnarf authored and dmethvin committed Jul 23, 2012
1 parent aa3fabc commit 74cc5b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/effects.js
Expand Up @@ -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 );
Expand Down

0 comments on commit 74cc5b0

Please sign in to comment.