Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1452 closed bug (fixed)

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.

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

This should be resolved in jQuery 1.1.4.

Note: See TracTickets for help on using tickets.