jQuery: The Write Less, Do More JavaScript Library

Ticket #1452 (closed bug: fixed)

Opened 1 year ago

Last modified 11 months ago

When each function encounters a void fn it throws exception

Reported by: buzzterrier Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

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

Change History

Changed 11 months ago by john

  • status changed from new to closed
  • resolution set to fixed

This should be resolved in jQuery 1.1.4.

Note: See TracTickets for help on using tickets.