1
0
Fork 0

Simplified BaseMiddleware#params.

This commit is contained in:
Alan Plum 2015-05-07 01:19:45 +02:00
parent de97cfa5fb
commit 1cd0d0aa10
1 changed files with 4 additions and 4 deletions

View File

@ -177,10 +177,10 @@ function BaseMiddleware() {
////////////////////////////////////////////////////////////////////////////////
params: function (key) {
var ps = {};
_.extend(ps, this.urlParameters);
_.extend(ps, this.parameters);
return ps[key];
if (this.parameters.hasOwnProperty(key)) {
return this.parameters[key];
}
return this.urlParameters[key];
}
};