From 938e36dbc22dae788d69fa6fc98e108280541c9c Mon Sep 17 00:00:00 2001 From: mig Date: Wed, 26 Apr 2017 09:46:22 +0200 Subject: [PATCH] added force option to resetView --- src/core/jocly.core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/jocly.core.js b/src/core/jocly.core.js index 17e1f45..2baeb1a 100644 --- a/src/core/jocly.core.js +++ b/src/core/jocly.core.js @@ -983,7 +983,7 @@ } // experimental - GameProxy.prototype.resetView = function () { + GameProxy.prototype.resetView = function (force) { if (jsContext == "node") return Promise.reject(new Error("resetView(): not supported in node.js")); if (!this.area && !this.iframe) @@ -993,8 +993,8 @@ var self = this; return self.viewControl("stopAnimations") .then((shouldRedisplayBoard) => { - if(shouldRedisplayBoard) - self.game.DisplayBoard(); + if(shouldRedisplayBoard || force) + self.game.DisplayBoard(); }) } else return ProxiedMethod(this, "resetView");