Commit e723b3de authored by Romain Courteaud's avatar Romain Courteaud

[jio] fix ensurePushableQueue cancellation handling

Ensure the thenable is correctly cancelled.
parent e6cc8453
......@@ -236,10 +236,7 @@
if (result instanceof RSVP.Queue) {
return result;
}
return new RSVP.Queue()
.push(function returnPushableResult() {
return result;
});
return new RSVP.Queue(result);
}
function declareMethod(klass, name, precondition_function, post_function) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment