aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-25 20:56:15 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-25 20:56:15 +0000
commit343b0936a43953a993d1f2cc500b954d5bcc8280 (patch)
treebc8c4f860409550900c22e00f8de237671bb4cc0 /src/fx.js
parentfd0bf5d6edec1f3c03008bb29b16d7e7e1b36abc (diff)
downloadjquery-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.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fx.js b/src/fx.js
index 8025de4d2..0596b2b3e 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -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);