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

Commit b17b1e08 by Daniel Durante

Forgot to check for null on .validate().

1 parent ce00eeac
Showing with 1 additions and 1 deletions
...@@ -573,7 +573,7 @@ module.exports = (function() { ...@@ -573,7 +573,7 @@ module.exports = (function() {
if (options.validate === true) { if (options.validate === true) {
var validate = this.build(attrValueHash).validate() var validate = this.build(attrValueHash).validate()
if (Object.keys(validate).length > 0) { if (validate !== null && Object.keys(validate).length > 0) {
return new Utils.CustomEventEmitter(function(emitter) { return new Utils.CustomEventEmitter(function(emitter) {
emitter.emit('error', validate) emitter.emit('error', validate)
}).run() }).run()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!