Bug Tracker

Opened 7 years ago

Closed 5 years ago

#5383 closed bug (fixed)

if jsonp not crossdomain, the complete handler will trigger twice

Reported by: asfman Owned by:
Priority: high Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: ajax complete jsonp Cc: asfman@…
Blocked by: Blocking:

Description

the first trigger in onreadystatechange the second trigger in window[jsonp]

it can be solved the same as success handler: if ( !jsonp )

success();

if ( !jsonp )

complete();

Change History (2)

comment:1 Changed 6 years ago by dmethvin

See test case in duplicate #4810.

comment:2 Changed 5 years ago by jitter

  • Keywords jsonp added
  • Milestone changed from 1.3.2 to 1.4.3
  • Priority changed from minor to high
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 1.3.2 to 1.4.2

This was fixed in jQuery 1.4.3

test case

Note: See TracTickets for help on using tickets.