Some coding style fixes

This commit is contained in:
Anatoliy Chakkaev 2011-11-17 13:18:39 +07:00
parent 9370a96a2b
commit dd1e54ffec
3 changed files with 9 additions and 9 deletions

View File

@ -16,10 +16,11 @@ Validatable.validate = function(){
if (typeof args[args.length - 1] === 'function'){
valFn = args.pop();
}
wrapperFn = function(attr, conf, err){ return valFn.call( this, err) };
wrapperFn = function customValidator(attr, conf, err) {
return valFn.call(this, err);
};
configure(this, wrapperFn, args)
}
};
// implementation of validators
var validators = {

View File

@ -2,7 +2,7 @@
"author": "Anatoliy Chakkaev",
"name": "jugglingdb",
"description": "ORM for every database: redis, mysql, neo4j, mongodb",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"url": "https://github.com/1602/jugglingdb"
},

View File

@ -77,7 +77,6 @@ it 'should allow to skip validations', (test) ->
test.done()
it 'should throw error on save if required', (test) ->
user = new User