Commit 536be744 authored by Mike Greiling's avatar Mike Greiling

remove unnecessary IIFE

parent b7bf9b41
...@@ -3,17 +3,15 @@ ...@@ -3,17 +3,15 @@
import Network from './network'; import Network from './network';
(function() { $(function() {
$(function() { if (!$(".network-graph").length) return;
if (!$(".network-graph").length) return;
var network_graph; var network_graph;
network_graph = new Network({ network_graph = new Network({
url: $(".network-graph").attr('data-url'), url: $(".network-graph").attr('data-url'),
commit_url: $(".network-graph").attr('data-commit-url'), commit_url: $(".network-graph").attr('data-commit-url'),
ref: $(".network-graph").attr('data-ref'), ref: $(".network-graph").attr('data-ref'),
commit_id: $(".network-graph").attr('data-commit-id') commit_id: $(".network-graph").attr('data-commit-id')
});
return new ShortcutsNetwork(network_graph.branch_graph);
}); });
}).call(window); return new ShortcutsNetwork(network_graph.branch_graph);
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment