Browse Source

Making code more concise

Richard Knight 5 years ago
parent
commit
12246bfb2e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ts/index.ts

+ 2 - 2
ts/index.ts

@@ -44,8 +44,8 @@ class Filpper {
 
 
 	setSizes(): void {
 	setSizes(): void {
 		const td = this.templateData;
 		const td = this.templateData;
-		this.templateData.curSize = this.getSize(td.curVal);
-		this.templateData.nextSize = this.getSize(td.nextVal);
+		td.curSize = this.getSize(td.curVal);
+		td.nextSize = this.getSize(td.nextVal);
 	}
 	}
 
 
 	getSize(val: number|string): string {
 	getSize(val: number|string): string {