changeset 468:2fb2357420f9

Hide update history method.
author Lucas Thompson <dev@lucas.im>
date Fri, 30 Jun 2017 15:35:16 +0100
parents b963af7e6eaf
children 3a76205e06b6
files src/app/Session.ts
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
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;
-  }
 }