Effects: Added support for animating borderColor (previously only supported individual borders, e.g., borderLeftColor). Fixes #4807 - $('').switchClass throwing error in IE8 if the switched class contains color property.

This commit is contained in:
Scott González 2009-11-06 01:46:49 +00:00
parent 23c87aaf43
commit ad2e514b07

View File

@ -332,7 +332,7 @@ $.fn.extend({
// override the animation for color styles // override the animation for color styles
$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', $.each(['backgroundColor', 'borderColor', 'borderBottomColor', 'borderLeftColor',
'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'],
function(i, attr) { function(i, attr) {
$.fx.step[attr] = function(fx) { $.fx.step[attr] = function(fx) {