diff src/app/Session.ts @ 509:041468f553e1 tip master

Merge pull request #57 from LucasThompson/fix/session-stack-max-call-stack Fix accidental recursion in PersistentStack
author Lucas Thompson <LucasThompson@users.noreply.github.com>
date Mon, 27 Nov 2017 11:04:30 +0000
parents 7ac80ad913c1
children
line wrap: on
line diff
--- a/src/app/Session.ts	Thu Oct 12 13:43:47 2017 +0100
+++ b/src/app/Session.ts	Mon Nov 27 11:04:30 2017 +0000
@@ -90,7 +90,7 @@
   }
 
   unshift(item: T): number {
-    const newLength = this.unshift(item);
+    const newLength = this.unshiftMutating(item);
     this.updateHistory();
     return newLength;
   }