mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
added global test variable
This commit is contained in:
parent
d38fbb7d74
commit
db977b8d02
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user