add _isDBInit

This commit is contained in:
Andy Gup 2015-04-29 19:18:18 -06:00
parent c6cae8fbe7
commit 4874bf305a

View File

@ -5,6 +5,7 @@ O.esri.Edit.EditStore = function () {
"use strict"; "use strict";
this._db = null; this._db = null;
this._isDBInit = false;
// Public properties // Public properties
@ -954,6 +955,7 @@ O.esri.Edit.EditStore = function () {
request.onsuccess = function (event) { request.onsuccess = function (event) {
this._db = event.target.result; this._db = event.target.result;
this._isDBInit = true;
console.log("database opened successfully"); console.log("database opened successfully");
callback(true); callback(true);
}.bind(this); }.bind(this);