Skip to content

Commit

Permalink
add support for doubleClick events in networks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Abelenda committed May 2, 2015
1 parent d2989ef commit 4578c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-vis.js
Expand Up @@ -151,7 +151,7 @@ angular.module('ngVis', [])

scope.$watch('events', function (events) {
angular.forEach(events, function (callback, event) {
if (['select', 'click', 'hoverNode'].indexOf(String(event)) >= 0) {
if (['select', 'click', 'hoverNode', 'doubleClick'].indexOf(String(event)) >= 0) {
network.on(event, callback);
}
});
Expand Down

0 comments on commit 4578c06

Please sign in to comment.