Initialize all member variables in constructor

This commit is contained in:
Tom Payne
2012-08-14 18:21:45 +02:00
parent a43cd15b27
commit 4f2b6a0c22
4 changed files with 34 additions and 35 deletions

View File

@@ -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.
*/