Skip to main content

Bug Tracker

Side navigation

#6663 closed bug (invalid)

Opened June 12, 2010 04:33PM UTC

Closed June 12, 2010 06:52PM UTC

Setting CSS property bug in IE

Reported by: vouc Owned by:
Priority: Milestone: 1.4.2
Component: effects Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

Actually, i'm not identify conditions, but in some cases in IE when change css property (through 'css' or 'animate' methods) arises error at line 5899.

#!cpp
fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;

It happens when property fx.now is NaN. Problem was solved when I wrap this line into the try-catch block.

#!cpp
try {
	fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
} catch (e) {}
Attachments (0)
Change History (1)

Changed June 12, 2010 06:52PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Please reopen with a test case. It's not good to catch and ignore invalid data without a very good reason.