]> git.proxmox.com Git - mirror_novnc.git/commit
Fixed presence detection bug in utils.set_defaults
authorSolly Ross <sross@redhat.com>
Fri, 19 Sep 2014 18:48:00 +0000 (14:48 -0400)
committerSolly Ross <sross@redhat.com>
Fri, 19 Sep 2014 18:48:00 +0000 (14:48 -0400)
commitcfc02e5e2bccfe2c1a80e4097372b8423ce9d87a
tree39fb8c922efd17162404aa94f0edd332ecacbc2e
parentd02a99f0c85557115caa99ff729bc1e2209a0a4a
Fixed presence detection bug in utils.set_defaults

Previously, Utils.set_defaults was using `if(conf[keys[i]])`
to check for the presence of a configuration key.  This would
fail if `conf[keys[i]]` happened to be false.  Instead, we now
use `if(keys[i] in conf)`, which simply checks for the presence
of the key in the conf object.
include/util.js