JSRocksHQ / harmonic

The next static site generator
http://harmonicjs.com/
MIT License
282 stars 26 forks source link

Replace GLOBALs with a dedicated store #80

Closed UltCombo closed 9 years ago

UltCombo commented 9 years ago

This shall aid testing as well.

UltCombo commented 9 years ago

bfe1adacd8257270f0c39d5e4c2f7f99add35979 and https://github.com/es6rocks/harmonic/commit/beb9caff64a1dc4e2bffa0d10184af3d482e73b9 removed all the global variables by either storing their values as properties of the Parser class instance (now called Harmonic class) or returning these values from the functions which generate them and passing them forward as arguments.

UltCombo commented 9 years ago

jaydson commented 9 years ago