Inline goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:21:50 -06:00
parent 7659e47e07
commit b36d697585
27 changed files with 58 additions and 58 deletions
+3 -3
View File
@@ -56,11 +56,11 @@ ol.source.XYZ = function(options) {
wrapX: goog.isDef(options.wrapX) ? options.wrapX : true
});
if (goog.isDef(options.tileUrlFunction)) {
if (options.tileUrlFunction !== undefined) {
this.setTileUrlFunction(options.tileUrlFunction);
} else if (goog.isDef(options.urls)) {
} else if (options.urls !== undefined) {
this.setUrls(options.urls);
} else if (goog.isDef(options.url)) {
} else if (options.url !== undefined) {
this.setUrl(options.url);
}