Inline simple !goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:31:16 -06:00
parent 3a0683f373
commit a86c270f6a
11 changed files with 17 additions and 17 deletions

View File

@@ -161,7 +161,7 @@ ol.source.Vector = function(opt_options) {
} else if (goog.isArray(options.features)) {
features = options.features;
}
if (!useSpatialIndex && !goog.isDef(collection)) {
if (!useSpatialIndex && collection === undefined) {
collection = new ol.Collection(features);
}
if (features !== undefined) {