mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix for animating hyphenated CSS properties. Fixes #4156.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user