diff --git a/lib/edit/editsStore.js b/lib/edit/editsStore.js index 0b74520..a4fb837 100644 --- a/lib/edit/editsStore.js +++ b/lib/edit/editsStore.js @@ -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 diff --git a/test/SpecRunner.editsStore.html b/test/SpecRunner.editsStore.html index e62fa3d..e8bdcf0 100644 --- a/test/SpecRunner.editsStore.html +++ b/test/SpecRunner.editsStore.html @@ -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();