if (!canModifyDocument()) {
return;
}
final StateMap deltaState = StateMap.create();
deltaState.fromJsonObject(delta);
// Defer state modifications to avoid RPC failure in Safari 3. The
// intermittent failure is caused by RPC called from received RPC
// callback.
// TODO(user): Remove this workaround once this is fixed in GGS.
ScheduleCommand.addCommand(new Task() {