(opts: {
forceNew: boolean|null,
} = {forceNew: null})
| 2225 | } |
| 2226 | |
| 2227 | static instance(opts: { |
| 2228 | forceNew: boolean|null, |
| 2229 | } = {forceNew: null}): DOMModelUndoStack { |
| 2230 | const {forceNew} = opts; |
| 2231 | if (!domModelUndoStackInstance || forceNew) { |
| 2232 | domModelUndoStackInstance = new DOMModelUndoStack(); |
| 2233 | } |
| 2234 | |
| 2235 | return domModelUndoStackInstance; |
| 2236 | } |
| 2237 | |
| 2238 | async markUndoableState(model: DOMModel, minorChange: boolean): Promise<void> { |
| 2239 | // Both minor and major changes get into the #stack, but minor updates are coalesced. |
no outgoing calls
no test coverage detected