flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
945 stars 83 forks source link

Changed order of define/exports/window. #6

Closed sgade closed 10 years ago

sgade commented 10 years ago

I was testing the sloc module within Atom but noticed it always returned an empty Object {}. I guess this is due to the fact that there is a window object present, however, packages should still use module.exports. Changing the order of appearance, the module works as expected.

flosse commented 10 years ago

thank you!