Permalink
Browse files

Comment out debug messages.

  • Loading branch information...
1 parent 0ddc441 commit 2ce42d52848fd3701df8f4b639a22b4bbbb4d3eb @arcusfelis committed Dec 24, 2012
Showing with 11 additions and 11 deletions.
  1. +9 −9 priv/js_src/relatio.js
  2. +2 −2 priv/js_src/relatio.world.js
View
18 priv/js_src/relatio.js
@@ -108,7 +108,7 @@ sigma.publicPrototype.zoomToNode = function(nid, ratio) {
ratio = 10;
}
- console.log("node {" + node.displayX + ", " + node.displayY + "}");
+//console.log("node {" + node.displayX + ", " + node.displayY + "}");
this.zoomToCoordinates(node.displayX, node.displayY, ratio);
}
@@ -120,7 +120,7 @@ sigma.publicPrototype.zoomToCoordinates = function(displayX, displayY, ratio) {
var m = this._core.mousecaptor;
var s = this._core;
if (!ratio) ratio = m.ratio;
- console.log("Zoom to: ", displayX, ", ", displayY, " with ", ratio);
+//console.log("Zoom to: ", displayX, ", ", displayY, " with ", ratio);
// Different formulas for diffenent cases
if (ratio == m.ratio)
{
@@ -171,7 +171,7 @@ sigma.publicPrototype.pickNode = function(nid) {
break;
default:
- console.error("Unknown type");
+ throw "Unknown type";
}
}
@@ -429,7 +429,7 @@ var Ring = function(size)
* Add an element at the end.
*/
this.add = function(e) {
- console.log("add " + e);
+// console.log("add " + e);
// Move the pointer on the next cell.
currentN++;
@@ -454,19 +454,19 @@ var Ring = function(size)
*/
this.check = function(e) {
// If e is a next element, than save history.
- console.log("check " + e + " " + this.next());
+// console.log("check " + e + " " + this.next());
show();
if ((newestN != currentN) && (e == this.next()))
currentN++;
else
this.add(e);
- console.dir(a);
+// console.dir(a);
}
this.go = function(stepCount) {
- console.log("GO TO " + stepCount);
+// console.log("GO TO " + stepCount);
show();
currentN += stepCount;
@@ -599,8 +599,8 @@ var Tip = function(si)
var canvasWidth = si.calculateCanvasWidth(),
canvasHeight = si.calculateCanvasHeight(),
- tipWidth = tip.outerWidth(),
- tipHeight = tip.outerHeight();
+ tipWidth = view.outerWidth(),
+ tipHeight = view.outerHeight();
// Calculate popup position.
// Set X and Y, if the selected node is not on the screen.
View
4 priv/js_src/relatio.world.js
@@ -883,7 +883,7 @@ relatio.initWorld = function() {
default:
if (cc >= charCodes.ZERO && cc <= charCodes.NINE)
repeatCount = repeatCount * 10 + cc - charCodes.ZERO;
- console.log("Key pressed: " + e.keyCode, " Char entered: " + e.charCode);
+// console.log("Key pressed: " + e.keyCode, " Char entered: " + e.charCode);
}
};
@@ -1235,7 +1235,7 @@ relatio.initWorld = function() {
if (json.length != 0){
var data = JSON.parse(json);
var id = data.node_set_id;
- console.log("Save the node set under id = " + id);
+// console.log("Save the node set under id = " + id);
window.location.assign("detail.html?id=" + id);
}
}

0 comments on commit 2ce42d5

Please sign in to comment.