Fix operator in createMathOperation. (#3499)

This commit is contained in:
Liang Zhao
2017-11-17 23:04:34 +08:00
committed by John-David Dalton
parent 8464b184b7
commit 40e096b6d5

View File

@@ -14,7 +14,7 @@ function createMathOperation(operator, defaultValue) {
if (value === undefined && other === undefined) {
return defaultValue
}
if (value != undefined && other === undefined) {
if (value !== undefined && other === undefined) {
return value
}
if (other !== undefined && value === undefined) {