Initialize all member variables in constructor
This commit is contained in:
@@ -23,17 +23,16 @@ ol.MapBrowserEvent = function(type, map, browserEvent) {
|
||||
*/
|
||||
this.browserEvent = browserEvent;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Coordinate|undefined}
|
||||
*/
|
||||
this.coordinate_ = undefined;
|
||||
|
||||
};
|
||||
goog.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
||||
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Coordinate|undefined}
|
||||
*/
|
||||
ol.MapBrowserEvent.prototype.coordinate_;
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.Coordinate|undefined} Coordinate.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user