Przeglądaj źródła

Making code more concise

Richard Knight 5 lat temu
rodzic
commit
12246bfb2e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      ts/index.ts

+ 2 - 2
ts/index.ts

@@ -44,8 +44,8 @@ class Filpper {
 
 	setSizes(): void {
 		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 {