Stricter typing for ol.Collection

This commit is contained in:
Frederic Junod
2014-07-30 09:38:16 +02:00
parent 1048d59331
commit 0277026624
9 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ ol.interaction.Draw = function(options) {
/**
* Target collection for drawn features.
* @type {ol.Collection}
* @type {ol.Collection.<ol.Feature>}
* @private
*/
this.features_ = goog.isDef(options.features) ? options.features : null;
+2 -2
View File
@@ -35,8 +35,8 @@ goog.require('ol.interaction.PinchZoom');
* should be excluded if you want a build with no vector support.
*
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
* @return {ol.Collection} A collection of interactions to be used with
* the ol.Map constructor's interactions option.
* @return {ol.Collection.<ol.interaction.Interaction>} A collection of
* interactions to be used with the ol.Map constructor's interactions option.
* @api stable
*/
ol.interaction.defaults = function(opt_options) {
+1 -1
View File
@@ -133,7 +133,7 @@ ol.interaction.Modify = function(options) {
};
/**
* @type {ol.Collection}
* @type {ol.Collection.<ol.Feature>}
* @private
*/
this.features_ = options.features;
+1 -1
View File
@@ -106,7 +106,7 @@ goog.inherits(ol.interaction.Select, ol.interaction.Interaction);
/**
* Get the selected features.
* @return {ol.Collection} Features collection.
* @return {ol.Collection.<ol.Feature>} Features collection.
* @api stable
*/
ol.interaction.Select.prototype.getFeatures = function() {