diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-18 14:25:54 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-18 15:17:25 -0400 |
commit | 662bdfbeb12883944075d3e038ea58af45f3df3a (patch) | |
tree | df52da38effddc771901b2e1247e27dfebc202cf /app | |
parent | d5c7b62b8ec2e80829746147e0fa65935120231d (diff) | |
download | gitlab-ce-662bdfbeb12883944075d3e038ea58af45f3df3a.tar.gz |
Make StatGraph JS explicitly require its dependencies
This allows us to test them in a bit more isolation.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/stat_graph_contributors.js.coffee | 4 | ||||
-rw-r--r-- | app/assets/javascripts/stat_graph_contributors_graph.js.coffee | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/stat_graph_contributors.js.coffee b/app/assets/javascripts/stat_graph_contributors.js.coffee index 27f0fd31d50..ed12bdcef22 100644 --- a/app/assets/javascripts/stat_graph_contributors.js.coffee +++ b/app/assets/javascripts/stat_graph_contributors.js.coffee @@ -1,3 +1,7 @@ +#= require d3 +#= require jquery +#= require stat_graph_contributors_util + class @ContributorsStatGraph init: (log) -> @parsed_log = ContributorsStatGraphUtil.parse_log(log) diff --git a/app/assets/javascripts/stat_graph_contributors_graph.js.coffee b/app/assets/javascripts/stat_graph_contributors_graph.js.coffee index 8b82d20c6c2..0e6fbdef3bc 100644 --- a/app/assets/javascripts/stat_graph_contributors_graph.js.coffee +++ b/app/assets/javascripts/stat_graph_contributors_graph.js.coffee @@ -1,3 +1,7 @@ +#= require d3 +#= require jquery +#= require underscore + class @ContributorsGraph MARGIN: top: 20 |