Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
jio
Commits
dcca4e59
Commit
dcca4e59
authored
Sep 04, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[indexeddb] fix cancellation issue
parent
008516f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
src/jio.storage/indexeddbstorage.js
src/jio.storage/indexeddbstorage.js
+2
-8
No files found.
src/jio.storage/indexeddbstorage.js
View file @
dcca4e59
...
@@ -149,10 +149,7 @@
...
@@ -149,10 +149,7 @@
}
catch
(
error
)
{
}
catch
(
error
)
{
reject
(
error
);
reject
(
error
);
}
}
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
(
result
)
.
push
(
function
()
{
return
result
;
})
.
push
(
function
(
final_result
)
{
.
push
(
function
(
final_result
)
{
canceller
();
canceller
();
resolve
(
final_result
);
resolve
(
final_result
);
...
@@ -184,10 +181,7 @@
...
@@ -184,10 +181,7 @@
reject
(
error
);
reject
(
error
);
}
}
tx
.
oncomplete
=
function
()
{
tx
.
oncomplete
=
function
()
{
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
(
result
)
.
push
(
function
()
{
return
result
;
})
.
push
(
resolve
,
function
(
error
)
{
.
push
(
resolve
,
function
(
error
)
{
canceller
();
canceller
();
reject
(
error
);
reject
(
error
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment