Skip to content

Commit

Permalink
Rename indexedDB.delete typos to indexedDB.deleteDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter authored and foolip committed Apr 26, 2017
1 parent 514b3f4 commit 143cd0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IndexedDB/idbcursor_iterating.htm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db = e.target.result;
t.add_cleanup(function() { db.close(); indexedDB.delete(db.name); });
t.add_cleanup(function() { db.close(); indexedDB.deleteDatabase(db.name); });
var objStore = db.createObjectStore("test", { keyPath: "key" });

for (var i = 0; i < 500; i++)
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/idbcursor_iterating_objectstore.htm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db = e.target.result;
t.add_cleanup(function() { db.close(); indexedDB.delete(db.name); });
t.add_cleanup(function() { db.close(); indexedDB.deleteDatabase(db.name); });
var objStore = db.createObjectStore("test", {keyPath:"pKey"});

for (var i = 0; i < records.length; i++)
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/idbcursor_iterating_objectstore2.htm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db = e.target.result;
t.add_cleanup(function() { db.close(); indexedDB.delete(db.name); });
t.add_cleanup(function() { db.close(); indexedDB.deleteDatabase(db.name); });
var objStore = db.createObjectStore("test", {keyPath:"pKey"});

for (var i = 0; i < records.length; i++)
Expand Down

0 comments on commit 143cd0e

Please sign in to comment.