Mercurial > hg > ugly-duckling
diff src/app/Session.ts @ 468:2fb2357420f9
Hide update history method.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 30 Jun 2017 15:35:16 +0100 |
parents | b963af7e6eaf |
children | 5f3e1b275e18 |
line wrap: on
line diff
--- a/src/app/Session.ts Fri Jun 30 15:27:56 2017 +0100 +++ b/src/app/Session.ts Fri Jun 30 15:35:16 2017 +0100 @@ -162,7 +162,11 @@ } } - updateHistory(): void { + toIterable(): Iterable<T> { + return this.stack; + } + + private updateHistory(): void { if (this.historyOffset !== 0) { this.history = this.history.slice( 0, @@ -172,8 +176,4 @@ } this.history.push([...this.stack]); } - - toIterable(): Iterable<T> { - return this.stack; - } }