Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Hardik Juneja
jio-main
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
Show 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 @@
...
@@ -27,8 +27,8 @@
* - https://developer.mozilla.org/en-US/docs/IndexedDB/Using_IndexedDB
* - https://developer.mozilla.org/en-US/docs/IndexedDB/Using_IndexedDB
*/
*/
/*jslint indent: 2, maxlen: 80 */
/*jslint indent: 2, maxlen: 80
, nomen: true
*/
/*global define, module, indexedDB, jIO, RSVP */
/*global define, module,
require,
indexedDB, jIO, RSVP */
(
function
(
dependencies
,
factory
)
{
(
function
(
dependencies
,
factory
)
{
"
use strict
"
;
"
use strict
"
;
...
@@ -256,12 +256,11 @@
...
@@ -256,12 +256,11 @@
db
.
close
();
db
.
close
();
};
};
store
=
tx
.
objectStore
(
"
metadata
"
);
store
=
tx
.
objectStore
(
"
metadata
"
);
store
.
delete
(
id
);
store
[
"
delete
"
]
(
id
);
// store.onsuccess = function () {
// store.onsuccess = function () {
// // *Called at t + 2*
// // *Called at t + 2*
// };
// };
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
reject
(
e
);
reject
(
e
);
db
.
close
();
db
.
close
();
}
}
...
@@ -401,7 +400,7 @@
...
@@ -401,7 +400,7 @@
if
(
option
.
limit
.
length
>
1
)
{
if
(
option
.
limit
.
length
>
1
)
{
if
(
option
.
limit
[
0
]
>
0
)
{
if
(
option
.
limit
[
0
]
>
0
)
{
option
.
limit
[
0
]
-=
1
;
option
.
limit
[
0
]
-=
1
;
cursor
.
continue
();
cursor
[
"
continue
"
]
();
return
;
return
;
}
}
if
(
option
.
limit
[
1
]
<=
0
)
{
if
(
option
.
limit
[
1
]
<=
0
)
{
...
@@ -444,7 +443,7 @@
...
@@ -444,7 +443,7 @@
}
}
// continue to next iteration
// continue to next iteration
cursor
.
continue
();
cursor
[
"
continue
"
]
();
}
else
{
}
else
{
notify
({
"
loaded
"
:
rows
.
length
});
notify
({
"
loaded
"
:
rows
.
length
});
// No more matching records.
// 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