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
+2 -2
View File
@@ -90,10 +90,10 @@ ol.Geolocation = function(opt_options) {
this, ol.Object.getChangeEventType(ol.GeolocationProperty.TRACKING),
this.handleTrackingChanged_, false, this);
if (goog.isDef(options.projection)) {
if (options.projection !== undefined) {
this.setProjection(ol.proj.get(options.projection));
}
if (goog.isDef(options.trackingOptions)) {
if (options.trackingOptions !== undefined) {
this.setTrackingOptions(options.trackingOptions);
}