Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6663 closed bug (invalid)

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.

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.

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

Change History (1)

comment:1 Changed 13 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.