nmunro / jaryn

A mood monitoring app: Deprecated, moving to azathoth
GNU Affero General Public License v3.0
0 stars 1 forks source link

Pass the file permissions as an object attribute. #11

Closed nmunro closed 8 years ago

nmunro commented 8 years ago

read/writeJSON have a json permissions object as an argument however it is hard coded into the read/write functions themselves.

The read/write functions take an object as a parameter that includes the filename to open, success and failure callbacks etc, it'd be worth passing a permissions attribute along with that.

There's no real compelling reason to do this besides making the code somewhat easier to read.

nmunro commented 8 years ago

Accidentally committed in [461bf71]