Initialize all properties in constructor in interactions
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ ol.interaction.TouchZoom = function() {
|
|||||||
* @private
|
* @private
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
this.lastDistance_;
|
this.lastDistance_ = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user