Toward natural JavaScript syntax

This commit is contained in:
Tim Schaub
2015-09-25 12:16:42 -06:00
parent d610b206f7
commit 0927c55b3c
40 changed files with 146 additions and 188 deletions

View File

@@ -92,8 +92,7 @@ ol.DeviceOrientation = function(opt_options) {
ol.Object.getChangeEventType(ol.DeviceOrientationProperty.TRACKING),
this.handleTrackingChanged_, false, this);
this.setTracking(ol.isDef(options.tracking) ?
/** @type {boolean} */ (options.tracking) : false);
this.setTracking(options.tracking !== undefined ? options.tracking : false);
};
goog.inherits(ol.DeviceOrientation, ol.Object);