Skip to content

Commit 5c6feee

Browse files
committed
Fix Entity id type in EntityCollection
The Entity id type is String.
1 parent 2f7421b commit 5c6feee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/DataSources/EntityCollection.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ define([
325325
/**
326326
* Removes an entity with the provided id from the collection.
327327
*
328-
* @param {Object} id The id of the entity to remove.
328+
* @param {String} id The id of the entity to remove.
329329
* @returns {Boolean} true if the item was removed, false if no item with the provided id existed in the collection.
330330
*/
331331
EntityCollection.prototype.removeById = function(id) {
@@ -382,7 +382,7 @@ define([
382382
/**
383383
* Gets an entity with the specified id.
384384
*
385-
* @param {Object} id The id of the entity to retrieve.
385+
* @param {String} id The id of the entity to retrieve.
386386
* @returns {Entity} The entity with the provided id or undefined if the id did not exist in the collection.
387387
*/
388388
EntityCollection.prototype.getById = function(id) {
@@ -398,7 +398,7 @@ define([
398398
/**
399399
* Gets an entity with the specified id or creates it and adds it to the collection if it does not exist.
400400
*
401-
* @param {Object} id The id of the entity to retrieve or create.
401+
* @param {String} id The id of the entity to retrieve or create.
402402
* @returns {Entity} The new or existing object.
403403
*/
404404
EntityCollection.prototype.getOrCreateEntity = function(id) {

0 commit comments

Comments
 (0)