Merge pull request #569 from twpayne/define-properties-in-constructor

Define properties in constructor
This commit is contained in:
Tom Payne
2013-04-19 01:21:34 -07:00
6 changed files with 8 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ ol.control.ScaleLine = function(opt_options) {
* @private
* @type {number|undefined}
*/
this.renderedWidth_;
this.renderedWidth_ = undefined;
/**
* @private

View File

@@ -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

View File

@@ -49,7 +49,7 @@ ol.Geolocation = function() {
* @private
* @type {number|undefined}
*/
this.watchId_;
this.watchId_ = undefined;
this.setTracking(false);

View File

@@ -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);

View File

@@ -38,7 +38,7 @@ ol.interaction.TouchRotate = function(opt_threshold) {
* @private
* @type {number|undefined}
*/
this.lastAngle_;
this.lastAngle_ = undefined;
/**
* @private

View File

@@ -36,7 +36,7 @@ ol.interaction.TouchZoom = function() {
* @private
* @type {number|undefined}
*/
this.lastDistance_;
this.lastDistance_ = undefined;
/**
* @private