Procházet zdrojové kódy

Making code more concise

Richard Knight před 5 roky
rodič
revize
12246bfb2e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 {