diff options
author | John Resig <jeresig@gmail.com> | 2009-07-25 20:56:15 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-07-25 20:56:15 +0000 |
commit | 343b0936a43953a993d1f2cc500b954d5bcc8280 (patch) | |
tree | bc8c4f860409550900c22e00f8de237671bb4cc0 /src/fx.js | |
parent | fd0bf5d6edec1f3c03008bb29b16d7e7e1b36abc (diff) | |
download | jquery-343b0936a43953a993d1f2cc500b954d5bcc8280.tar.gz jquery-343b0936a43953a993d1f2cc500b954d5bcc8280.zip |
Fix for animating hyphenated CSS properties. Fixes #4156.
Diffstat (limited to 'src/fx.js')
-rw-r--r-- | src/fx.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -109,6 +109,14 @@ jQuery.fn.extend({ self = this; for ( p in prop ) { + var name = p.replace(rdashAlpha, fcamelCase); + + if ( p !== name ) { + prop[ name ] = prop[ p ]; + delete prop[ p ]; + p = name; + } + if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) return opt.complete.call(this); |