* Allow multiple updates to be performed on the instance at once.
(callback: () => T)
| 785 | * Allow multiple updates to be performed on the instance at once. |
| 786 | */ |
| 787 | public _batchUpdate<T>(callback: () => T): T { |
| 788 | try { |
| 789 | this._suspendNativeUpdates(SuspendType.Incremental); |
| 790 | |
| 791 | return callback(); |
| 792 | } finally { |
| 793 | this._resumeNativeUpdates(SuspendType.Incremental); |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | private setFlag(flag: Flags, value: boolean): void { |
| 798 | switch (flag) { |
nothing calls this directly
no test coverage detected