Bug Tracker

Modify

Ticket #5383 (closed bug: fixed)

Opened 5 years ago

Last modified 3 years ago

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@…
Blocking: Blocked by:

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

comment:1 Changed 4 years ago by dmethvin

See test case in duplicate #4810.

comment:2 Changed 3 years ago by jitter

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

This was fixed in jQuery 1.4.3

 test case

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.