Inline !goog.isDef() calls for properties

This commit is contained in:
Tim Schaub
2015-09-27 10:37:20 -06:00
parent e3951fa3c6
commit 36e336f406
6 changed files with 7 additions and 7 deletions

View File

@@ -134,7 +134,7 @@ ol.Geolocation.prototype.handleProjectionChanged_ = function() {
ol.Geolocation.prototype.handleTrackingChanged_ = function() {
if (ol.has.GEOLOCATION) {
var tracking = this.getTracking();
if (tracking && !goog.isDef(this.watchId_)) {
if (tracking && this.watchId_ === undefined) {
this.watchId_ = goog.global.navigator.geolocation.watchPosition(
goog.bind(this.positionChange_, this),
goog.bind(this.positionError_, this),