diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/effects.js b/src/effects.js index 22e79f1ba..8ab41cbd3 100644 --- a/src/effects.js +++ b/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 ); |