fix migration script for localstorage to indexeddb

This commit is contained in:
juliandescottes 2017-06-18 18:14:04 +02:00 committed by Julian Descottes
parent e9b39a5c61
commit 30ea7fa079

View File

@ -41,7 +41,7 @@
// Create an object store "piskels" with the autoIncrement flag set as true.
var objectStore = this.db.createObjectStore('piskels', { keyPath : 'name' });
objectStore.transaction.oncomplete = function(event) {
pskl.database.migrate.MigrateLocalStorageToIndexedDb.migrate(this.db);
pskl.database.migrate.MigrateLocalStorageToIndexedDb.migrate(this);
}.bind(this);
};