Skip to content

Commit

Permalink
Fix typo in IdbWrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxor1337 committed Apr 28, 2015
1 parent 230e764 commit 224c525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions js/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
};
})();

var indexedDB = (function () {
var dictionaryIdb = (function () {
var cls = function (version) {
var did = version;

Expand Down Expand Up @@ -214,7 +214,7 @@
if(short_name.length > 10)
short_name = short_name.substring(0,10) + "...";

return indexedDB.create()
return dictionaryIdb.create()
.then(function (db) {
oDB = db;

Expand Down Expand Up @@ -247,7 +247,7 @@
};

this.restore = function (version) {
oDB = new indexedDB(version);
oDB = new dictionaryIdb(version);
return new Promise(function (resolve, reject) {
oDB.get_meta().then(function (meta) {
meta_info = meta;
Expand Down
4 changes: 2 additions & 2 deletions js/idbwrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
var version = parseInt(indexedDB_handle.version)+1;
if(typeof data === "undefined") data = {};
return new Promise(function (resolve, reject) {
this.init(
open_db(
function () {
data.version = version;
indexedDB_handle.transaction("dictionaries", "readwrite")
Expand All @@ -104,7 +104,7 @@
this.remove_dictionary = function (data) {
var version = parseInt(indexedDB_handle.version)+1;
return new Promise(function (resolve, reject) {
this.init(
open_db(
function () {
indexedDB_handle.transaction("dictionaries", "readwrite")
.objectStore("dictionaries").delete(data);
Expand Down

0 comments on commit 224c525

Please sign in to comment.