Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
Ivan Tyagov
jio
Commits
b60b42a1
Commit
b60b42a1
authored
Apr 02, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint indexeddbstorage.js
parent
c0aa7a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/jio.storage/indexeddbstorage.js
src/jio.storage/indexeddbstorage.js
+5
-6
No files found.
src/jio.storage/indexeddbstorage.js
View file @
b60b42a1
...
...
@@ -27,8 +27,8 @@
* - https://developer.mozilla.org/en-US/docs/IndexedDB/Using_IndexedDB
*/
/*jslint indent: 2, maxlen: 80 */
/*global define, module, indexedDB, jIO, RSVP */
/*jslint indent: 2, maxlen: 80
, nomen: true
*/
/*global define, module,
require,
indexedDB, jIO, RSVP */
(
function
(
dependencies
,
factory
)
{
"
use strict
"
;
...
...
@@ -256,12 +256,11 @@
db
.
close
();
};
store
=
tx
.
objectStore
(
"
metadata
"
);
store
.
delete
(
id
);
store
[
"
delete
"
]
(
id
);
// store.onsuccess = function () {
// // *Called at t + 2*
// };
}
catch
(
e
)
{
console
.
log
(
e
);
reject
(
e
);
db
.
close
();
}
...
...
@@ -401,7 +400,7 @@
if
(
option
.
limit
.
length
>
1
)
{
if
(
option
.
limit
[
0
]
>
0
)
{
option
.
limit
[
0
]
-=
1
;
cursor
.
continue
();
cursor
[
"
continue
"
]
();
return
;
}
if
(
option
.
limit
[
1
]
<=
0
)
{
...
...
@@ -444,7 +443,7 @@
}
// continue to next iteration
cursor
.
continue
();
cursor
[
"
continue
"
]
();
}
else
{
notify
({
"
loaded
"
:
rows
.
length
});
// No more matching records.
...
...
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