1
0
Fork 0

fixed jslint warnings

This commit is contained in:
Jan Steemann 2013-09-20 17:28:17 +02:00
parent 8a9ce4e86d
commit 0587e80e3e
2 changed files with 4 additions and 1 deletions

View File

@ -57,6 +57,7 @@ var Model,
////////////////////////////////////////////////////////////////////////////////
var whitelistProperties = function (properties, constructorProperties) {
'use strict';
var filteredProperties,
whitelistedProperties = _.keys(constructorProperties);
@ -70,6 +71,7 @@ var whitelistProperties = function (properties, constructorProperties) {
};
var fillInDefaults = function (properties, constructorProperties) {
'use strict';
var defaults = _.reduce(constructorProperties, function (result, value, key) {
if (_.has(value, "defaultValue")) {
result[key] = value.defaultValue;
@ -142,7 +144,7 @@ _.extend(Model, {
required: parseRequiredAttributes(attributes),
properties: parseAttributes(attributes)
};
},
}
});
// Instance Properties

View File

@ -41,6 +41,7 @@ var RequestContext,
addCheck;
createBodyParamBubbleWrap = function (handler, paramName, Proto) {
'use strict';
return function (req, res) {
req.parameters[paramName] = new Proto(req.body());
handler(req, res);