Skip to main content

Bug Tracker

Side navigation

#13091 closed bug (notabug)

Opened December 19, 2012 02:38PM UTC

Closed December 21, 2012 04:04AM UTC

progress for multiple deferred

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

I was expecting a different result when using .progress() with multiple deferred:

http://jsfiddle.net/4vXdN/3/ : i was expecting "process1 done, process2 done, all ok".

http://jsfiddle.net/4vXdN/4/ : Even weirder, when i switch the order (process2, process1) , i get "undefined, process2 done, all ok".

Similarities to http://bugs.jquery.com/ticket/11894, but then I dont understand the second the "undefined" in the second jsfiddle.

Thanks!

Attachments (0)
Change History (2)

Changed December 19, 2012 09:21PM UTC by fastfasterfastest comment:1

There are a couple of problems with your code. One is your usage of document.write. Another is that the promise that $.when returns calls its callback functions with *all* the promises passed to $.when. Here is an updated version of your first case:

http://jsfiddle.net/fastfasterfastest/ewm5f/

Therefore, in my opinion the problem is in your code, not in jquery.

Changed December 21, 2012 04:04AM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

Please ask for help on a forum.