Commit 8c58241e authored by Romain Courteaud's avatar Romain Courteaud

Drop not needed variable.

parent 81fc3c1b
......@@ -8,15 +8,13 @@
})
.declareMethod('render', function (data) {
var gadget = this,
graph = new Dygraph(
data || NoisyData,
{
roolPeriod: 7,
errorBars: true
}
);
return graph;
return new Dygraph(
this.__element,
data || NoisyData,
{
roolPeriod: 7,
errorBars: true
}
);
});
}(window, rJS, Dygraph, NoisyData));
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