// Generated by CoffeeScript 1.10.0 (function() { var ArrowTool, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; global(ArrowTool = (function() { function ArrowTool(conf) { this.select = bind(this.select, this); this.graph = conf.graph; this.view = conf.view; this.listeners = []; this.listeners.push(this.view.on('action_on_node', this.select)); this.listeners.push(this.view.on('action_on_link', this.select)); } ArrowTool.prototype.destroy = function() { return this.listeners.forEach((function(_this) { return function(l) { return _this.view.on(l, null); }; })(this)); }; ArrowTool.prototype.select = function(d) { return this.graph.select(d); }; return ArrowTool; })()); }).call(this);