From dfd4f2623f362682a98235e59ed475a2ca0f2e9c Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Tue, 23 Jan 2018 09:29:46 +0000 Subject: [PATCH] Start of undo redo --- src/actionlist.ts | 12 ++++++++++++ src/actionnode.ts | 15 +++++++++++++++ tslint.json | 1 + 3 files changed, 28 insertions(+) create mode 100644 src/actionlist.ts create mode 100644 src/actionnode.ts diff --git a/src/actionlist.ts b/src/actionlist.ts new file mode 100644 index 0000000..4ad50e6 --- /dev/null +++ b/src/actionlist.ts @@ -0,0 +1,12 @@ +/* class ActionList extends LinkedList { + + + private _current: ActionNode; + + + public push (node: LinkedNode): void { + // super(node); + } + + +} */ diff --git a/src/actionnode.ts b/src/actionnode.ts new file mode 100644 index 0000000..544f75b --- /dev/null +++ b/src/actionnode.ts @@ -0,0 +1,15 @@ +/* class ActionNode extends LinkedNode { + + + public undo: () => void; + public redo: () => void; + + + constructor (undo: () => void, redo: () => void) { + super(); + this.undo = undo; + this.redo = redo; + } + + +} */ diff --git a/tslint.json b/tslint.json index 1379856..246e7cc 100644 --- a/tslint.json +++ b/tslint.json @@ -12,6 +12,7 @@ "max-line-length": false, "prefer-for-of": false, "typedef": true, + "no-console": false, "variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"] }, "rulesDirectory": []