diff --git a/Source/DataSources/EntityCollection.js b/Source/DataSources/EntityCollection.js index 51c09888200c..e534a4e1d5da 100644 --- a/Source/DataSources/EntityCollection.js +++ b/Source/DataSources/EntityCollection.js @@ -325,7 +325,7 @@ define([ /** * Removes an entity with the provided id from the collection. * - * @param {Object} id The id of the entity to remove. + * @param {String|Number} id The id of the entity to remove. * @returns {Boolean} true if the item was removed, false if no item with the provided id existed in the collection. */ EntityCollection.prototype.removeById = function(id) { @@ -382,7 +382,7 @@ define([ /** * Gets an entity with the specified id. * - * @param {Object} id The id of the entity to retrieve. + * @param {String|Number} id The id of the entity to retrieve. * @returns {Entity} The entity with the provided id or undefined if the id did not exist in the collection. */ EntityCollection.prototype.getById = function(id) { @@ -398,7 +398,7 @@ define([ /** * Gets an entity with the specified id or creates it and adds it to the collection if it does not exist. * - * @param {Object} id The id of the entity to retrieve or create. + * @param {String|Number} id The id of the entity to retrieve or create. * @returns {Entity} The new or existing object. */ EntityCollection.prototype.getOrCreateEntity = function(id) {