mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
we execute the post-edit sequence in the next round of javascript events... this is important because some application level code (for instance the undo manager) assumes that events will not be fired immediately
This commit is contained in:
parent
d8c69da02a
commit
79d1d6d00b
@ -87,8 +87,11 @@ define([
|
||||
},this);
|
||||
|
||||
/* we already pushed the edits into the local store, now we let the FeatureLayer to do the local updating of the layer graphics */
|
||||
this._editHandler(results, adds, updatesMap, callback, errback, deferred);
|
||||
self.emit(self.events.EDITS_ENQUEUED, results);
|
||||
setTimeout(function()
|
||||
{
|
||||
this._editHandler(results, adds, updatesMap, callback, errback, deferred);
|
||||
self.emit(self.events.EDITS_ENQUEUED, results);
|
||||
}.bind(this),0);
|
||||
return deferred;
|
||||
}
|
||||
}; // layer.applyEdits()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user