Minor updates.

This commit is contained in:
Julien Fontanet 2013-07-07 22:11:36 +02:00
parent 54019d7843
commit a4b58b1fd7
2 changed files with 9 additions and 2 deletions

View File

@ -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);
};
}

View File

@ -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.
*/