Merge pull request #3431 from fredj/cleanup

Better typing
This commit is contained in:
Frédéric Junod
2015-03-31 17:38:00 +02:00
+2 -2
View File
@@ -118,7 +118,7 @@ ol.interaction.Snap = function(opt_options) {
options.pixelTolerance : 10; options.pixelTolerance : 10;
/** /**
* @type {Function} * @type {function(ol.interaction.Snap.SegmentDataType, ol.interaction.Snap.SegmentDataType): number}
* @private * @private
*/ */
this.sortByDistance_ = goog.bind(ol.interaction.Snap.sortByDistance, this); this.sortByDistance_ = goog.bind(ol.interaction.Snap.sortByDistance, this);
@@ -126,7 +126,7 @@ ol.interaction.Snap = function(opt_options) {
/** /**
* Segment RTree for each layer * Segment RTree for each layer
* @type {Object.<*, ol.structs.RBush>} * @type {ol.structs.RBush.<ol.interaction.Snap.SegmentDataType>}
* @private * @private
*/ */
this.rBush_ = new ol.structs.RBush(); this.rBush_ = new ol.structs.RBush();