added global test variable

This commit is contained in:
Andy Gup 2015-03-06 17:13:31 -07:00
parent d38fbb7d74
commit db977b8d02
2 changed files with 6 additions and 3 deletions

View File

@ -70,7 +70,7 @@ O.esri.Edit.EditStore = function()
*
* NOTE: "dataObject.id" is a reserved property. If you use "id" in your object this method will break.
* @param dataObject Object
* @param callback {true, null} or {false, error}
* @param callback callback(true, null) || callback(false, error)
*/
this.pushFeatureLayerJSON = function(dataObject /*Object*/, callback){
@ -125,7 +125,7 @@ O.esri.Edit.EditStore = function()
/**
* Retrieve the FeatureLayer data object
* @param callback {true, object} or {false, error}
* @param callback callback(true, object) || callback(false, error)
*/
this.getFeatureLayerJSON = function(callback){
@ -153,7 +153,7 @@ O.esri.Edit.EditStore = function()
/**
* Safe delete. Checks if id exists, then reverifies.
* @param callback {success, {message: String}}
* @param callback callback(boolean, {message: String})
*/
this.deleteFeatureLayerJSON = function(callback){
// NOTE: the implementation of the IndexedDB spec has a design fault with respect to

View File

@ -29,6 +29,7 @@
var g_map;
var g_test = {};
var g_editsStore;
var esriGraphic;
require(["esri/map",
"esri/layers/GraphicsLayer", "esri/graphic", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
@ -53,6 +54,8 @@
g_map.on('load', test);
*/
esriGraphic = Graphic;
g_editsStore = new O.esri.Edit.EditStore();
test();