Better typing

This commit is contained in:
Frederic Junod
2015-03-31 14:32:23 +02:00
parent e5f6bae49b
commit d138b2d1d5
+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();