mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-07-29 17:04:44 +02:00
Minor updates.
This commit is contained in:
parent
54019d7843
commit
a4b58b1fd7
@ -5,10 +5,10 @@ var Q = require('q');
|
|||||||
|
|
||||||
function deprecated(fn)
|
function deprecated(fn)
|
||||||
{
|
{
|
||||||
return function (session, req, res) {
|
return function (session, req) {
|
||||||
console.warn(req.method +' is deprecated!');
|
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]);
|
return (undefined !== this.items[id]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
Collection.prototype.findWhere = function (properties) {
|
||||||
|
return _.findWhere(this.items, properties);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes items from this collection.
|
* Removes items from this collection.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user