Skip to content

Commit

Permalink
Changed rejecting on stop with resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed Jul 2, 2014
1 parent 6334862 commit 66f521c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,8 +1620,8 @@ Velocity's structure:

/* Since we're stopping, do not proceed with Queueing. */
if (promise) {
/* Reject promise with chained context to indicate: "no error, simply stopping". */
rejecter(getChain());
/* Just resolve the promise with chained context. */
resolver(getChain());
return promise;
}
return getChain();
Expand Down

0 comments on commit 66f521c

Please sign in to comment.