Remove goog.isDef from formats

This commit is contained in:
Tim Schaub
2015-09-21 05:51:45 +09:00
parent 5350e9ba37
commit 1fceb4a709
11 changed files with 138 additions and 141 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ ol.format.JSONFeature.prototype.getObject_ = function(source) {
return source;
} else if (goog.isString(source)) {
var object = goog.json.parse(source);
return goog.isDef(object) ? object : null;
return object ? object : null;
} else {
goog.asserts.fail();
return null;