Merge pull request #569 from twpayne/define-properties-in-constructor

Define properties in constructor
This commit is contained in:
Tom Payne
2013-04-19 01:21:34 -07:00
6 changed files with 8 additions and 8 deletions
+1 -1
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
+2 -2
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
+1 -1
View File
@@ -49,7 +49,7 @@ ol.Geolocation = function() {
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.watchId_; this.watchId_ = undefined;
this.setTracking(false); this.setTracking(false);
@@ -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);
+1 -1
View File
@@ -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
+1 -1
View File
@@ -36,7 +36,7 @@ ol.interaction.TouchZoom = function() {
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.lastDistance_; this.lastDistance_ = undefined;
/** /**
* @private * @private