diff --git a/lib/edit/editsStore.js b/lib/edit/editsStore.js index 84e6cac..e5cc003 100644 --- a/lib/edit/editsStore.js +++ b/lib/edit/editsStore.js @@ -5,6 +5,7 @@ O.esri.Edit.EditStore = function () { "use strict"; this._db = null; + this._isDBInit = false; // Public properties @@ -954,6 +955,7 @@ O.esri.Edit.EditStore = function () { request.onsuccess = function (event) { this._db = event.target.result; + this._isDBInit = true; console.log("database opened successfully"); callback(true); }.bind(this);