Bug Tracker

Modify

Ticket #845 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

common error gives inscrutable error

Reported by: tex@… Owned by:
Priority: minor Milestone: 1.1
Component: ajax Version: 1.1
Keywords: Cc:
Blocking: Blocked by:

Description

line 2102:

if ( a[j].constructor == Array )

causes exception: 'Error: a[j] has no properties' if a[j] is undef. That's not very helpful - more helpful would be to discover ahead of time that a[j] is undefined. Even better (if possible) might be to have it serialize an undef there.

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Version set to 1.1
  • Resolution set to fixed
  • Milestone set to 1.1

This was due to when you were passing in an undefined parameter in an Ajax request. This has been resolved to no longer error, and instead send the undefined value to the server.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.