fixed style nits

This commit is contained in:
Keith Abdulla 2014-08-23 23:31:33 -07:00
parent b3d795b2a7
commit bbd79c9e1a
2 changed files with 1 additions and 4 deletions

View File

@ -33,7 +33,6 @@ var checkArray = function(schema, key, errors, values) {
};
/*jshint loopfunc:true*/
Schema.prototype.validate = function(data) {
var params = _.keys(this.schema);
var errors = {};
@ -70,8 +69,7 @@ Schema.prototype.validate = function(data) {
}
}
}
}
else if (!_.isUndefined(value)) {
} else if (!_.isUndefined(value)) {
values[params[i]] = value;
}

View File

@ -3,7 +3,6 @@ describe("filter schemas", function()
/*jshint expr:true*/
var schemajs = (typeof window === 'undefined') ? require('../schema') : window.schema;
var expect = (typeof window === 'undefined') ? require('chai').expect : window.chai.expect;
it("minimum string length property", function()
{
var schema = schemajs.create(