mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects core: Fixed indentation for color animation overrides.
This commit is contained in:
parent
b129e79ba7
commit
f22f205cfc
@ -237,16 +237,13 @@ $.fn.extend({
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
* jQuery Color Animations
|
||||
* Copyright 2007 John Resig
|
||||
* Released under the MIT and GPL licenses.
|
||||
*/
|
||||
|
||||
// We override the animation for all of these color styles
|
||||
$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
|
||||
// override the animation for color styles
|
||||
$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor',
|
||||
'borderRightColor', 'borderTopColor', 'color', 'outlineColor'],
|
||||
function(i,attr){
|
||||
$.fx.step[attr] = function(fx) {
|
||||
if ( fx.state == 0 ) {
|
||||
if (fx.state == 0) {
|
||||
fx.start = getColor( fx.elem, attr );
|
||||
fx.end = getRGB( fx.end );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user