From b2fcd9b705e2df1645a7d2315a824f733f09a1ec Mon Sep 17 00:00:00 2001 From: mig Date: Thu, 27 Apr 2017 07:12:38 +0200 Subject: [PATCH] fixed es6 should not be used ub games --- src/games/checkers/checkersbase-model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/games/checkers/checkersbase-model.js b/src/games/checkers/checkersbase-model.js index ef669a3..7bf20ce 100644 --- a/src/games/checkers/checkersbase-model.js +++ b/src/games/checkers/checkersbase-model.js @@ -158,7 +158,7 @@ var parts = [PosToString(self.pos[0]), PosToString(self.pos[self.pos.length - 1])]; if (self.capt[1]) { sep = "x"; - var capts = self.capt.slice(1).map((pos) => { + var capts = self.capt.slice(1).map(function(pos) { return PosToString(pos); }); capts.sort(); @@ -178,7 +178,7 @@ parts = parts.concat(capts); } else parts.push(0); - return parts.map((num)=>{ + return parts.map(function(num) { return num<10 ? "0"+num : num; }).join(""); }