Support for unique collections

This commit is contained in:
Tim Schaub
2017-04-11 21:29:30 -06:00
parent 8b0e1b638b
commit d28f50465b
3 changed files with 117 additions and 1 deletions
+15
View File
@@ -8,6 +8,21 @@ var olx;
/* typedefs for object literals provided by applications */
/**
* @typedef {{unique: (boolean|undefined)}}
*/
olx.CollectionOptions;
/**
* Disallow the same item from being added to the collection twice. Default is
* false.
* @type {boolean|undefined}
* @api
*/
olx.CollectionOptions.prototype.unique;
/**
* @typedef {{html: string,
* tileRanges: (Object.<string, Array.<ol.TileRange>>|undefined)}}