Skip to content

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

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

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

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
@dmethvin dmethvin modified the milestones: 1.12/2.2, 3.0.0 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
Development

Successfully merging a pull request may close this issue.

2 participants