Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2831 closed bug (fixed)

event.blind.js effect will trigger script error in IE7

Reported by: cyberflohr Owned by:
Priority: minor Milestone: 1.5
Component: ui.effects.* (individual effect) Version: 1.5b4
Keywords: Cc:
Blocked by: Blocking:

Description

I've tracked down the problem to the following lines of code within the effect.core.js script

The following lines within the createWrapper function will produce under certain circumstances NaN values for top & left.

var top = parseInt(el.css('top'), 10); if (top.constructor != Number) top = 'auto';
var left = parseInt(el.css('left'), 10); if (left.constructor != Number) left = 'auto';


fix:

var top = parseInt(el.css('top'), 10); if (isNaN(top)) top = 'auto';
var left = parseInt(el.css('left'), 10); if (isNaN(left)) left = 'auto';

Change History (4)

comment:1 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:2 Changed 15 years ago by paul

Component: ui.coreeffects.* (individual effect)
Owner: paul deleted
Version: 1.2.31.5b4

comment:3 Changed 15 years ago by aaronchi

Resolution: fixed
Status: newclosed

comment:4 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.