Skip to main content

Bug Tracker

Side navigation

#5383 closed bug (fixed)

Opened October 15, 2009 02:50AM UTC

Closed November 19, 2010 09:56PM UTC

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@gmail.com
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();

Attachments (0)
Change History (2)

Changed December 10, 2009 04:06AM UTC by dmethvin comment:1

See test case in duplicate #4810.

Changed November 19, 2010 09:56PM UTC by jitter comment:2

keywords: ajax completeajax complete jsonp
milestone: 1.3.21.4.3
priority: minorhigh
resolution: → fixed
status: newclosed
version: 1.3.21.4.2

This was fixed in jQuery 1.4.3

test case