Initialize all member variables in constructor
This commit is contained in:
@@ -49,6 +49,12 @@ ol.control.MousePosition =
|
||||
*/
|
||||
this.undefinedHTML_ = opt_undefinedHTML || '';
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.TransformFunction}
|
||||
*/
|
||||
this.transform_ = ol.Projection.identityTransform;
|
||||
|
||||
goog.events.listen(map,
|
||||
ol.Object.getChangedEventType(ol.MapProperty.PROJECTION),
|
||||
this.handleMapProjectionChanged, false, this);
|
||||
@@ -65,13 +71,6 @@ ol.control.MousePosition =
|
||||
goog.inherits(ol.control.MousePosition, ol.Control);
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.TransformFunction}
|
||||
*/
|
||||
ol.control.MousePosition.prototype.transform_;
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user