editor._updateCurrentFeature(dojo.hitch(this,function(){ editor._clearSelection(false); }));
stopEditing : function(_6) { this._updateCurrentFeature(_2.hitch(this, function() { this._clearSelection(false); _6 && _6(); })); },
Hi Patrick, how did you know of the existence of stopEditing() and _disableMapClickHandler() method?. Those methods don´t exist in the javascript api Editor | API Reference | ArcGIS API for JavaScript 3.20 . Excuse my English and I appreciate your response.
//var editModeIsEdit (bool) true|false => editing session ? function manageEditor(){ if(editModeIsEdit){ if(editorWidget!=undefined){ editorWidget._disableMapClickHandler(); editorWidget._enableMapClickHandler(); } }else{ if(templatePicker!=undefined){ templatePicker.clearSelection(false); } if(editorWidget!=undefined){ editorWidget.stopEditing(false); editorWidget._disableMapClickHandler(); } } }