Skip to main content

Bug Tracker

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)
  • jquerytest.html (0.7 KB) - added by Lynn January 24, 2010 02:12PM UTC.

    Minimal Reproducer

Change History (1)

Changed January 24, 2010 03:32PM UTC by dmethvin comment:1

resolution: → fixed
status: newclosed