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

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

Comments

Projects
None yet
2 participants
@gibson042
Member

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 the Deferred label Jan 13, 2015

@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

@gibson042 gibson042 closed this in 002240a Apr 22, 2015

@dmethvin dmethvin modified the milestones: 1.12/2.2, 3.0.0 Jan 7, 2016

@cssmagic cssmagic referenced this issue in cssmagic/ChangeLog May 18, 2016

Open

jQuery #5

@jquery jquery 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.