Explorar el Código

Making code more concise

Richard Knight hace 5 años
padre
commit
12246bfb2e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 {