Side navigation
#5919 closed bug (fixed)
Opened January 24, 2010 02:11PM UTC
Closed January 24, 2010 03:32PM UTC
Last modified March 14, 2012 12:48AM UTC
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 (1)
Changed January 24, 2010 03:32PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed: http://github.com/jquery/jquery/commit/155ecf42a0033785160e071507f0795b3c86a32b