Revert runtime/util

This commit is contained in:
HirokiUchikawa
2018-05-09 19:19:37 +09:00
parent 0be9c88106
commit e30f8628db
2 changed files with 6 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ function getMessageProperty(msg,expr) {
var msgPropParts = normalisePropertyExpression(expr);
var m;
msgPropParts.reduce(function(obj, key) {
result = ((typeof obj !== "undefined") && (typeof obj[key] !== "undefined") ? obj[key] : undefined);
result = (typeof obj[key] !== "undefined" ? obj[key] : undefined);
return result;
}, msg);
return result;