summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-09-18 18:49:57 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-09-22 16:53:52 +0300
commit09ae8a5401ae5ff97b8b7b75437077651988b5a2 (patch)
treecae22fea41911cc3407857a4444dd7784b667176
parent366376ab3b614c66b31d95ee93b86db5d31aae5f (diff)
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 <jocelyn.turcotte@digia.com>
-rw-r--r--basicsuite/webengine/content/rubiks/js/rubik.js8
1 files changed, 4 insertions, 4 deletions
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) {