Skip to content

Commit

Permalink
Effects: Avoid cssHook blending in non-rgba browsers when the value i…
Browse files Browse the repository at this point in the history
…s "transparent". Fixes #8914: odd behaviour of css hook when setting backgroundColor to transparent in IE7/8
  • Loading branch information
mikesherov committed Jan 3, 2013
1 parent f667d09 commit da01fb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.effect.js
Expand Up @@ -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 ) {

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit da01fb6

Please sign in to comment.