Skip to main content

Bug Tracker

Side navigation

#1452 closed bug (fixed)

Opened August 01, 2007 07:55PM UTC

Closed September 15, 2007 01:37PM UTC

When each function encounters a void fn it throws exception

Reported by: buzzterrier Owned by:
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:
Description

I have several jquery based ajax calls that work w/o issue. However one fairly complex one returns an error even with a successful response from the call. The error is on this line:

if ( fn.apply( obj[i], args || [i, obj[i]] ) === false ) break;

where fn is void.

It was pointed out on the forum that using:

if ( fn&&fn.apply( obj[i], args || [i, obj[i]] )) break;

would check if fn was void, and break rather than throwing an exception. Using this line in my code, the problem ajax call now works, as does all of my existing ajax calls.

I wish I could tell you why fn is void, which may be the real bug, but it seems reasonable to test if fn is void and break.

Attachments (0)
Change History (1)

Changed September 15, 2007 01:37PM UTC by john comment:1

resolution: → fixed
status: newclosed

This should be resolved in jQuery 1.1.4.