Fix for animating hyphenated CSS properties. Fixes #4156.
This commit is contained in:
parent
fd0bf5d6ed
commit
343b0936a4
2 changed files with 20 additions and 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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue