From 09ae8a5401ae5ff97b8b7b75437077651988b5a2 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Thu, 18 Sep 2014 18:49:57 +0200 Subject: webengine: enable out-commented js code in the Rubik's cube demo This fixes some glitches seen with the new chromium snapshot. Change-Id: Id0e54315a862b07332bf6788c16fa0fef9556a9d Reviewed-by: Jocelyn Turcotte --- basicsuite/webengine/content/rubiks/js/rubik.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'basicsuite/webengine') diff --git a/basicsuite/webengine/content/rubiks/js/rubik.js b/basicsuite/webengine/content/rubiks/js/rubik.js index 4e6cf28..72dbae7 100644 --- a/basicsuite/webengine/content/rubiks/js/rubik.js +++ b/basicsuite/webengine/content/rubiks/js/rubik.js @@ -30,7 +30,7 @@ Face.prototype.init = function(cube, type) { this._color = null; this._node = OZ.DOM.elm("div", {className:"face face"+type, width:Face.SIZE+"px", height:Face.SIZE+"px", position:"absolute", left:"0px", top:"0px"}); OZ.CSS3.set(this._node, "box-sizing", "border-box"); -// OZ.CSS3.set(this._node, "backface-visibility", "hidden"); + OZ.CSS3.set(this._node, "backface-visibility", "hidden"); switch (type) { case Face.LEFT: @@ -126,8 +126,8 @@ Cube.prototype.prepareColorChange = function(sourceCube, rotation) { } Cube.prototype.commitColorChange = function() { -// var parent = this._node.parentNode; -// parent.removeChild(this._node); + var parent = this._node.parentNode; + parent.removeChild(this._node); OZ.DOM.clear(this._node); this._faces = {}; @@ -139,7 +139,7 @@ Cube.prototype.commitColorChange = function() { this._rotation = null; this._update(); -// parent.appendChild(this._node); + parent.appendChild(this._node); } Cube.prototype._rotateType = function(type, rotation) { -- cgit v1.2.3