From 66f521ca75c00d2426171c0e5a86c3c8ef462324 Mon Sep 17 00:00:00 2001 From: Yehonatan Daniv Date: Wed, 2 Jul 2014 22:31:17 +0300 Subject: [PATCH] Changed rejecting on stop with resolving --- jquery.velocity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.velocity.js b/jquery.velocity.js index fa5a5d8e..e27f2921 100644 --- a/jquery.velocity.js +++ b/jquery.velocity.js @@ -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();