Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5919 closed bug (fixed)

jQuery.ajax({ dataType: 'json', error: function(...) {...}}) delivers a wrong this pointer.

Reported by: Lynn Owned by:
Priority: major Milestone: 1.4.1
Component: ajax Version: 1.4
Keywords: ajax, error, context Cc:
Blocked by: Blocking:

Description

jQuery.ajax({ url: 'nowhere', dataType: 'json', error: function(...) {...}}) delivers at error() a this pointer to a DOMWindow/Window - instead of an AJAX Event.

There's no jQuery.ajax({context: ...}) used, so I would expext an AJAX Event.

See attached file for the minimal reproducer.

-

P.S.: With jQuery/1.4 you've done a great job, many thanks.

Attachments (1)

jquerytest.html (766 bytes) - added by Lynn 10 years ago.
Minimal Reproducer

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Lynn

Attachment: jquerytest.html added

Minimal Reproducer

comment:1 Changed 10 years ago by dmethvin

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.