Initialize all properties in constructor in controls

This commit is contained in:
Tom Payne
2013-04-18 21:01:58 +02:00
parent 669d47e8d2
commit 43cfc2a4cd
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ ol.control.ScaleLine = function(opt_options) {
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.renderedWidth_; this.renderedWidth_ = undefined;
/** /**
* @private * @private

View File

@@ -38,10 +38,10 @@ ol.control.ZoomSlider = function(options) {
/** /**
* Will hold the current resolution of the view. * Will hold the current resolution of the view.
* *
* @type {number} * @type {number|undefined}
* @private * @private
*/ */
this.currentResolution_; this.currentResolution_ = undefined;
/** /**
* The direction of the slider. Will be determined from actual display of the * The direction of the slider. Will be determined from actual display of the