versioning fixes

This commit is contained in:
Alex Yatskov 2017-01-27 20:26:44 -08:00
parent d134c6b297
commit 79194bcafc

View File

@ -68,7 +68,7 @@ function optionsSetDefaults(options) {
function optionsVersion(options) {
const copy = (targetDict, targetKey, sourceDict, sourceKey) => {
targetDict[targetKey] = sourceDict[sourceKey] || targetDict[targetKey];
targetDict[targetKey] = sourceDict.hasOwnProperty(sourceKey) ? sourceDict[sourceKey] : targetDict[targetKey];
};
options.version = options.version || 0;