#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)
Change History (2)
Changed 14 years ago by
Attachment: | jquerytest.html added |
---|
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Minimal Reproducer