HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

fix duplicate var issue #250

Closed jochenberger closed 7 years ago

jochenberger commented 10 years ago

jshint reports the use of the undeclared var d. I'm not entirely sure that the fix is correct. Apparently, the problem was introduced in d9fd6e16cdb68e605053857673b5f800ef459746 with the intention of fixing another jshint issue. As I understand it, that var d in the for loop shadows the variable d from the generator function, so I renamed it.