Merge pull request #569 from twpayne/define-properties-in-constructor
Define properties in constructor
This commit is contained in:
@@ -77,7 +77,7 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.renderedWidth_;
|
||||
this.renderedWidth_ = undefined;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -38,10 +38,10 @@ ol.control.ZoomSlider = function(options) {
|
||||
/**
|
||||
* Will hold the current resolution of the view.
|
||||
*
|
||||
* @type {number}
|
||||
* @type {number|undefined}
|
||||
* @private
|
||||
*/
|
||||
this.currentResolution_;
|
||||
this.currentResolution_ = undefined;
|
||||
|
||||
/**
|
||||
* The direction of the slider. Will be determined from actual display of the
|
||||
|
||||
@@ -49,7 +49,7 @@ ol.Geolocation = function() {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.watchId_;
|
||||
this.watchId_ = undefined;
|
||||
|
||||
this.setTracking(false);
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ ol.interaction.DragRotateAndZoom = function(condition) {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.lastAngle_;
|
||||
this.lastAngle_ = undefined;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.lastMagnitude_;
|
||||
this.lastMagnitude_ = undefined;
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Drag);
|
||||
|
||||
@@ -38,7 +38,7 @@ ol.interaction.TouchRotate = function(opt_threshold) {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.lastAngle_;
|
||||
this.lastAngle_ = undefined;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -36,7 +36,7 @@ ol.interaction.TouchZoom = function() {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.lastDistance_;
|
||||
this.lastDistance_ = undefined;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user