Skip to content

Commit

Permalink
bug fix for touchend
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjensenuk committed Jun 5, 2012
1 parent 7a007b7 commit fb6cba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/scripts/view/boardview.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ define(
connector.set("pointPath", pointPath.path);
},

//handles touchend event. locates the position the touchend happened and if there is a node then calls connectorEnd
//handles touchend event. locates the position where the touchend happened and if there is a node then calls connectorEnd
touchEnd: function(e) {

if (tmpConnectorView == null) return;
Expand All @@ -207,12 +207,12 @@ define(

var shape = this.paper.getElementByPoint(x, y);

if (shape == null || shape.node.id == null) return;
if (shape == null || shape.node.id == "") return;

var node = this.nodes.find(function(n) {
return n.get("nodeId") == shape.node.id
});

if(this.connectorEnd(node)){
e.stopPropagation();
e.preventDefault();
Expand Down

0 comments on commit fb6cba4

Please sign in to comment.