Minor updates.
This commit is contained in:
parent
54019d7843
commit
a4b58b1fd7
|
@ -5,10 +5,10 @@ var Q = require('q');
|
|||
|
||||
function deprecated(fn)
|
||||
{
|
||||
return function (session, req, res) {
|
||||
return function (session, req) {
|
||||
console.warn(req.method +' is deprecated!');
|
||||
|
||||
return fn.call(this, session, req, res);
|
||||
return fn.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,13 @@ Collection.prototype.exists = function (id) {
|
|||
return (undefined !== this.items[id]);
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
Collection.prototype.findWhere = function (properties) {
|
||||
return _.findWhere(this.items, properties);
|
||||
};
|
||||
|
||||
/**
|
||||
* Removes items from this collection.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue