Skip to content

Commit

Permalink
Merge pull request #23 from rabelenda/master
Browse files Browse the repository at this point in the history
Add support for doubleClick events in networks.
  • Loading branch information
cdjackson committed May 3, 2015
2 parents 90d0c43 + 4578c06 commit af4e3a2
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 af4e3a2

Please sign in to comment.