Initialize all properties in constructor in interactions
This commit is contained in:
@@ -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