Skip to content

Commit e91c37a

Browse files
committed
revert debug statements
1 parent 29fd7ca commit e91c37a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

test/jasmine/assets/get_node_coords.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
*/
66
module.exports = function(node, edge) {
77
edge = edge || '';
8-
console.log('getNodeCoords()');
9-
console.log(' node.outerHTML', node.outerHTML);
10-
console.log(' document contains node?', document.body.contains(node));
118
var bbox = node.getBoundingClientRect();
12-
var getbbox = node.getBBox();
13-
console.log(' bounding client rect', {x: bbox.x, y: bbox.y, width: bbox.width, height: bbox.height});
14-
console.log(' bounding box', {x: getbbox.x, y: getbbox.y, width: getbbox.width, height: getbbox.height});
159
var x, y;
1610

1711
if(edge.indexOf('n') !== -1) y = bbox.top;
@@ -22,7 +16,5 @@ module.exports = function(node, edge) {
2216
else if(edge.indexOf('e') !== -1) x = bbox.right;
2317
else x = (bbox.left + bbox.right) / 2;
2418

25-
console.log(' returning coords:', {x: x, y: y});
26-
2719
return {x: x, y: y};
2820
};

0 commit comments

Comments
 (0)