don't fruitlessly create a million mappings when you double click nodes already in the canvas
This commit is contained in:
parent
2cff8ce37e
commit
0280b5bb21
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ function selectEdgeOnClickHandler(adj, e) {
|
||||||
}//selectEdgeOnClickHandler
|
}//selectEdgeOnClickHandler
|
||||||
|
|
||||||
function nodeDoubleClickHandler(node, e) {
|
function nodeDoubleClickHandler(node, e) {
|
||||||
|
if (node.getData('inCommons') == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
node.setData('inCommons', false);
|
node.setData('inCommons', false);
|
||||||
deselectNode(node);
|
deselectNode(node);
|
||||||
if (window.mapid) {
|
if (window.mapid) {
|
||||||
|
|
Loading…
Reference in a new issue