aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-07-20 18:36:55 -0500
committerCorey Frang <gnarf@gnarf.net>2012-07-20 18:36:55 -0500
commit94924a05dec8513f285411491702900bb741713e (patch)
treefe3ee491411e71df36f3ed7c0f76365e0492a1e7 /src/effects.js
parent30168722204633e49ca9d47ecb6b43d80a4653a4 (diff)
downloadjquery-94924a05dec8513f285411491702900bb741713e.tar.gz
jquery-94924a05dec8513f285411491702900bb741713e.zip
Fix the logic to set overflow:hidden on width & height animations - Fixes #12117 - Closes gh-869
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js
index f28ef9418..22e79f1ba 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -269,7 +269,7 @@ function defaultPrefilter( elem, props, opts ) {
}
// height/width overflow pass
- if ( elem.nodeType === 1 && ( props.height || props.width ) ) {
+ if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
// Make sure that nothing sneaks out
// Record all 3 overflow attributes because IE does not
// change the overflow attribute when overflowX and