Преглед на файлове

Making code more concise

Richard Knight преди 5 години
родител
ревизия
12246bfb2e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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 {