不要怂,就是干,撸起袖子干!

Commit 6e8793c2 by Mick Hansen

Merge pull request #1743 from overlookmotel/master

Removed tabs where should be spaces
2 parents c20fa816 e40e6474
...@@ -253,11 +253,10 @@ InstanceValidator.prototype._builtinAttrValidate = function(value, field) { ...@@ -253,11 +253,10 @@ InstanceValidator.prototype._builtinAttrValidate = function(value, field) {
// Check for custom validator. // Check for custom validator.
if (typeof test === 'function') { if (typeof test === 'function') {
return validators.push(self._invokeCustomValidator(test, validatorType, return validators.push(self._invokeCustomValidator(test, validatorType, true, value, field))
true, value, field))
} }
var validatorPromise = self._invokeBuiltinValidator(value, test, validatorType, field); var validatorPromise = self._invokeBuiltinValidator(value, test, validatorType, field)
// errors are handled in settling, stub this // errors are handled in settling, stub this
validatorPromise.catch(noop) validatorPromise.catch(noop)
validators.push(validatorPromise) validators.push(validatorPromise)
......
...@@ -58,7 +58,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () { ...@@ -58,7 +58,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
done() done()
}) })
}).error(function(err) { }).error(function(err) {
done(err); done(err)
}); });
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!