Skip to content

Commit dfa08ac

Browse files
committed
Fix example code in sigma.plugins.dragNodes README
The `killDragNodes` function actually takes a sigma instance as the argument. Without passing in the sigma instance the function will fail with `Uncaught TypeError: Cannot read property 'id' of undefined` at `sigma.plugins.dragNodes.js:302`.
1 parent e393fa2 commit dfa08ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/sigma.plugins.dragNodes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var dragListener = new sigma.plugins.dragNodes(sigInst, renderer);
1616
Kill the plugin as follows:
1717

1818
````javascript
19-
sigma.plugins.killDragNodes();
19+
sigma.plugins.killDragNodes(sigInst);
2020
````
2121

2222
## Events

0 commit comments

Comments
 (0)