Skip to content

Commit da01fb6

Browse files
committed
Effects: Avoid cssHook blending in non-rgba browsers when the value is "transparent". Fixes #8914: odd behaviour of css hook when setting backgroundColor to transparent in IE7/8
1 parent f667d09 commit da01fb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.effect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ $.effects = {
1717
};
1818

1919
/*!
20-
* jQuery Color Animations v2.1.1
20+
* jQuery Color Animations v2.1.2pre@b11ed286205199b8db74220cd237c4f045050e63
2121
* https://github.com/jquery/jquery-color
2222
*
2323
* Copyright 2012 jQuery Foundation and other contributors
2424
* Released under the MIT license.
2525
* http://jquery.org/license
2626
*
27-
* Date: Sun Oct 28 15:08:06 2012 -0400
27+
* Date: Thu Jan 3 14:21:32 2013 -0500
2828
*/
2929
(function( jQuery, undefined ) {
3030

@@ -596,7 +596,7 @@ color.hook = function( hook ) {
596596
var parsed, curElem,
597597
backgroundColor = "";
598598

599-
if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) {
599+
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
600600
value = color( parsed || value );
601601
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
602602
curElem = hook === "backgroundColor" ? elem.parentNode : elem;

0 commit comments

Comments
 (0)