MCPcopy
hub / github.com/GrapesJS/grapesjs / hasUndo

Method hasUndo

packages/core/src/undo_manager/index.ts:280–282  ·  view source on GitHub ↗

* Checks if exists an available undo * @return {Boolean} * @example * um.hasUndo();

()

Source from the content-addressed store, hash-verified

278 * um.hasUndo();
279 */
280 hasUndo() {
281 return !!this.um.isAvailable('undo');
282 }
283
284 /**
285 * Checks if exists an available redo

Callers 2

index.tsFile · 0.80
datasources.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected