Remove goog.isDef from device orientation, dom, extent, and feature

This commit is contained in:
Tim Schaub
2015-09-21 05:27:14 +09:00
parent 390153adc8
commit 5350e9ba37
4 changed files with 19 additions and 17 deletions
+4 -2
View File
@@ -3,6 +3,7 @@ goog.provide('ol.DeviceOrientationProperty');
goog.require('goog.events');
goog.require('goog.math');
goog.require('ol');
goog.require('ol.Object');
goog.require('ol.has');
@@ -79,7 +80,7 @@ ol.DeviceOrientation = function(opt_options) {
goog.base(this);
var options = goog.isDef(opt_options) ? opt_options : {};
var options = opt_options ? opt_options : {};
/**
* @private
@@ -91,7 +92,8 @@ ol.DeviceOrientation = function(opt_options) {
ol.Object.getChangeEventType(ol.DeviceOrientationProperty.TRACKING),
this.handleTrackingChanged_, false, this);
this.setTracking(goog.isDef(options.tracking) ? options.tracking : false);
this.setTracking(ol.isDef(options.tracking) ?
/** @type {boolean} */ (options.tracking) : false);
};
goog.inherits(ol.DeviceOrientation, ol.Object);