Skip to content

Commit ca72bb4

Browse files
hellpcarols10cents
authored andcommitted
Fix JSHint complaints.
1 parent 91c9f8d commit ca72bb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/components/download-graph.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default Ember.Component.extend({
8181

8282
// use a DataView to calculate an x-day moving average
8383
var days = 7;
84-
var view = new google.visualization.DataView(myData);
84+
var view = new window.google.visualization.DataView(myData);
8585
var moving_avg_func_for_col = function(col) {
8686
return function(dt, row) {
8787
// For the last rows (the *first* days, remember, the dataset is
@@ -110,7 +110,8 @@ export default Ember.Component.extend({
110110
var [headers, ] = data;
111111
// Walk over the headers/colums in reverse order, as the newest version
112112
// is at the end, but in the UI we want it at the top of the chart legend.
113-
_.forEach(_.range(headers.length - 1, 0, -1), (dataCol, i) => {
113+
114+
window._.range(headers.length - 1, 0, -1).forEach((dataCol, i) => {
114115
columns.push(dataCol); // add the column itself
115116
columns.push({ // add a 'calculated' column, the moving average
116117
type: 'number',

0 commit comments

Comments
 (0)