Allow property values of zero. ()

Allow SWG properties of zero to be used instead of overwriting
them with defaults.
This commit is contained in:
Pete Richards 2018-03-27 10:02:15 -07:00 committed by Andrew Henry
parent 4df6d6141b
commit 1a23f2b390

@ -66,7 +66,7 @@ define([
if (request && request.hasOwnProperty(prop)) {
workerRequest[prop] = request[prop];
}
if (!workerRequest[prop]) {
if (!workerRequest.hasOwnProperty(prop)) {
workerRequest[prop] = REQUEST_DEFAULTS[prop];
}
workerRequest[prop] = Number(workerRequest[prop]);