issues
search
jperkin
/
node-openzwave
node.js interface to libopenzwave
Other
110
stars
55
forks
source link
Added 'validatevalues' global config option & default options bug fix
#38
Open
bencpeters
opened
9 years ago
bencpeters
commented
9 years ago
validatevalues addresses issue #37
Option parsing was done by using || with passed-in options, going to a default value otherwise. However, for a boolean flag with a "true" default, this makes it impossible to set the value false. This commit fixes this issue using hasOwnProperty.