don't fruitlessly create a million mappings when you double click nodes already in the canvas

This commit is contained in:
Devin Howard 2013-02-28 20:43:07 -05:00
parent 2cff8ce37e
commit 0280b5bb21

View file

@ -29,6 +29,10 @@ function selectEdgeOnClickHandler(adj, e) {
}//selectEdgeOnClickHandler
function nodeDoubleClickHandler(node, e) {
if (node.getData('inCommons') == false) {
return;
}
node.setData('inCommons', false);
deselectNode(node);
if (window.mapid) {