Commit dcca4e59 authored by Romain Courteaud's avatar Romain Courteaud

[indexeddb] fix cancellation issue

parent 008516f5
Pipeline #11327 failed with stage
in 0 seconds
......@@ -149,10 +149,7 @@
} catch (error) {
reject(error);
}
return new RSVP.Queue()
.push(function () {
return result;
})
return new RSVP.Queue(result)
.push(function (final_result) {
canceller();
resolve(final_result);
......@@ -184,10 +181,7 @@
reject(error);
}
tx.oncomplete = function () {
return new RSVP.Queue()
.push(function () {
return result;
})
return new RSVP.Queue(result)
.push(resolve, function (error) {
canceller();
reject(error);
......
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