Skip to main content

Search and Top Navigation

#5401 closed bug (duplicate)

Opened March 22, 2010 04:19PM UTC

Closed March 22, 2010 05:02PM UTC

Last modified October 11, 2012 09:15PM UTC

effects.core.js crash with IE8 in the color animation

Reported by: daok911 Owned by:
Priority: minor Milestone:
Component: ui.effects.core Version: 1.7.2
Keywords: color Cc:
Blocked by: Blocking:
Description

This function at line 221 to 224 :

/*
 * 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){
		$.fx.step[attr] = function(fx) {
				if ( fx.state == 0 ) {
						fx.start = getColor( fx.elem, attr );
						fx.end = getRGB( fx.end );
				}

				fx.elem.style[attr] = "rgb(" + [
						Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0],10), 255), 0),
						Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1],10), 255), 0),
						Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2],10), 255), 0)
				].join(",") + ")";
			};
});

Crash when fx.elem.style[attr] is set to a color. It doesn't happen every time but still happen more than 40% of times. The color is built with fx.end[..] and fx.start[..] and it occurs that sometime the start and end are NULL.

[[Image(http://clip2net.com/clip/m12122/1269274742-clip-31kb.png)]]

Attachments (0)
Change History (2)

Changed March 22, 2010 05:02PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Duplicate of #4251.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted