hard deprecate getReadableEdit()

This commit is contained in:
Andy Gup 2015-03-18 15:48:34 -06:00
parent 9d7ec49722
commit ad1f3d77ee

View File

@ -1037,6 +1037,10 @@ define([
}
}
else{
// No edits were found
callback(true,[]);
}
// wait for all requests to finish
//
@ -1329,20 +1333,13 @@ define([
},
/**
* DEPRECATED @ v2.5
* DEPRECATED @ v2.5. Use getAllEditsArray() and parse the results
* A string value representing human readable information on pending edits
* @param edit
* @returns {string}
*/
getReadableEdit: function (edit) {
var layer = this._featureLayers[edit.layer];
var graphic = this._editStore._deserialize(edit.graphic);
var readableGraphic = graphic.geometry.type;
var layerId = edit.layer.substring(edit.layer.lastIndexOf("/") + 1);
if (layer) {
readableGraphic += " [id=" + graphic.attributes[layer.objectIdField] + "]";
}
return "o:" + edit.operation + ", l:" + layerId + ", g:" + readableGraphic;
return "DEPRECATED at v2.5!";
}
}); // declare