Commit b60b42a1 authored by Tristan Cavelier's avatar Tristan Cavelier

jslint indexeddbstorage.js

parent c0aa7a7f
...@@ -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.
......
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