diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-01-03 14:33:41 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-01-03 14:33:41 -0500 |
commit | da01fb6a346e1ece3fd6dde5556a98f099e0c0e0 (patch) | |
tree | 8572380a83d32072f18df98e203afa9ee3c2d3a8 | |
parent | f667d090a74ce3f9c0bacceab93ec542c6915e44 (diff) | |
download | jquery-ui-da01fb6a346e1ece3fd6dde5556a98f099e0c0e0.tar.gz jquery-ui-da01fb6a346e1ece3fd6dde5556a98f099e0c0e0.zip |
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
-rw-r--r-- | ui/jquery.ui.effect.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.effect.js b/ui/jquery.ui.effect.js index edb63c14b..e45b76de0 100644 --- a/ui/jquery.ui.effect.js +++ b/ui/jquery.ui.effect.js @@ -17,14 +17,14 @@ $.effects = { }; /*! - * jQuery Color Animations v2.1.1 + * jQuery Color Animations v2.1.2pre@b11ed286205199b8db74220cd237c4f045050e63 * https://github.com/jquery/jquery-color * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * - * Date: Sun Oct 28 15:08:06 2012 -0400 + * Date: Thu Jan 3 14:21:32 2013 -0500 */ (function( jQuery, undefined ) { @@ -596,7 +596,7 @@ color.hook = function( hook ) { var parsed, curElem, backgroundColor = ""; - if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) { + if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) { value = color( parsed || value ); if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { curElem = hook === "backgroundColor" ? elem.parentNode : elem; |