Initialize all properties in constructor in interactions

This commit is contained in:
Tom Payne
2013-04-18 21:02:53 +02:00
parent b24c46dd19
commit 7d610bde7b
3 changed files with 4 additions and 4 deletions

View File

@@ -29,13 +29,13 @@ ol.interaction.DragRotateAndZoom = function(condition) {
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.lastAngle_; this.lastAngle_ = undefined;
/** /**
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.lastMagnitude_; this.lastMagnitude_ = undefined;
}; };
goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Drag); goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Drag);

View File

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

View File

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