Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe doesn't forward progress from already-resolved Deferred #2010

Closed
gibson042 opened this issue Jan 13, 2015 · 0 comments
Closed

pipe doesn't forward progress from already-resolved Deferred #2010

gibson042 opened this issue Jan 13, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@gibson042
Copy link
Member

@gibson042 gibson042 commented Jan 13, 2015

http://jsfiddle.net/sp6a117y/

Analogous to #1894 in both cause and solution. The new promise never sees progress at all because .done is called on it before .progress:

jQuery.Deferred().resolve().pipe(function() {
    var dfd = jQuery.Deferred().notify( "a" );
    dfd.notify( "b" ).resolve( 1 );
    return dfd;
})
.progress( expectsInvocationWithB );
@gibson042 gibson042 added this to the 3.0.0 milestone Jan 13, 2015
gibson042 added a commit to gibson042/jquery that referenced this issue Apr 14, 2015
gibson042 added a commit to gibson042/jquery that referenced this issue Apr 14, 2015
@gibson042 gibson042 self-assigned this Apr 14, 2015
gibson042 added a commit to gibson042/jquery that referenced this issue Apr 14, 2015
gibson042 added a commit that referenced this issue Apr 22, 2015
Fixes gh-2013
Fixes gh-2010
Closes gh-2210

(cherry picked from commit 002240a)
@gibson042 gibson042 closed this in 002240a Apr 22, 2015
@dmethvin dmethvin added this to the 1.12/2.2 milestone Jan 7, 2016
@dmethvin dmethvin removed this from the 3.0.0 milestone Jan 7, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants