it as "number" type. This fixes a small problem with resource set
method returning id of type "number" whereas find method was returning
id of type "string".
rafal
(This used to be commit
c3805aeb5e64aa66c0dfceb89efdf60bfb2134e8)
/* Save the resource and its type */
r.resource = resource;
r.type = type;
+ r.id = this.resourceList.id;
/* Add this resource to the list */
this.resourceList[this.resourceList.id] = r;
if (r.type == type)
{
/* Yup, this is the one they want. */
- return resourceId;
+ return r.id;
}
}
}