Skip to content

Commit

Permalink
Remove underscore check
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jan 14, 2011
1 parent cd37438 commit fdc23eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validate.js
Expand Up @@ -187,7 +187,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*B
}

for(var i in objTypeDef){
if(objTypeDef.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_')){
if(objTypeDef.hasOwnProperty(i)){
var value = instance[i];
var propDef = objTypeDef[i];
// set default
Expand Down

0 comments on commit fdc23eb

Please sign in to comment.