Skip to main content

Bug Tracker

Side navigation

#10030 closed bug (duplicate)

Opened August 11, 2011 09:19PM UTC

Closed August 29, 2011 07:41PM UTC

Last modified March 10, 2012 03:11AM UTC

IE 7 only - jQuery core "finally {"

Reported by: toby@accentmedia.ca Owned by: toby@accentmedia.ca
Priority: low Milestone: None
Component: deferred Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery from CDN loaded into Wordpress 3.2, works perfectly in all browsers except IE7.

Script debugger reports that the jQuery core is responsible, with this error:

"Object doesn't support this property or method"

The function it seems to get caught on is:

finally{b=[e,f],c=0}

minified file and uncompressed causes the same error, and exists in this version and 1.5.

Attachments (0)
Change History (5)

Changed August 12, 2011 01:43PM UTC by timmywil comment:1

component: unfileddeferred
owner: → toby@accentmedia.ca
priority: undecidedlow
status: newpending

This may be an example where try/finally causes a problem in IE7. We have not been able to reproduce the issue with a test case yet, however, so if you could, please provide a reduced test case in any way possible. If it can be reproduced on http://jsfiddle.net, that is preferred.

Changed August 18, 2011 08:25AM UTC by anonymous comment:2

the problem is when some settings for display js error open

any way i had the same problem and solve the problem

The error you're getting is due to jQuery needing to call the function resolveWith which contains a try - finally without a catch block. Until IE9, this is not supported by IE and causes the error:

in the 1.6.2 min version at the "try" is without catch

try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}

i changed it to

try{while(a[0])a.shift().apply(e,f)}catch(e){}finally{b=[e,f],c=0} and it work with no error

Changed August 23, 2011 12:01PM UTC by Ben comment:3

I've met the same problem on IE8. IE<9 need to have at least one catch before a finally.

Changed August 29, 2011 07:41PM UTC by rwaldron comment:4

resolution: → duplicate
status: pendingclosed

Changed August 29, 2011 07:41PM UTC by rwaldron comment:5

Duplicate of #9033.