// Generated by CoffeeScript 1.10.0 (function() { var AppView, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; global(AppView = (function(superClass) { extend(AppView, superClass); function AppView(conf) { var a, b, c, d, graph, keyboard, nv, tool; AppView.__super__.constructor.call(this, conf); graph = new Graph; keyboard = new Keyboard; keyboard.on('delete_down', function() { return graph.delete_selected(); }); nv = new NetworkView({ graph: graph, parent: this }); tool = new CurrentTool({ graph: graph, view: nv }); new Toolbar({ current_tool: tool, parent: this, prepend: true }); tool.set('Arrow'); a = graph.new_node(100, 100); b = graph.new_node(100, 200); graph.new_link(a, b); c = graph.new_node(200, 200); graph.new_link(b, c); d = graph.new_node(200, 100); graph.new_link(c, d); graph.new_link(d, a); } return AppView; })(View)); }).call(this);