diff --git a/addon/errors.js b/addon/errors.js index f5ee250d..74db38be 100644 --- a/addon/errors.js +++ b/addon/errors.js @@ -8,8 +8,8 @@ const { } = Ember; export default EmberObject.extend({ - unknownProperty(property) { - set(this, property, emberArray()); - return get(this, property); - } +// unknownProperty(property) { +// set(this, property, emberArray()); +// return get(this, property); +// } }); diff --git a/addon/mixin.js b/addon/mixin.js index 2fa174f2..4367e189 100644 --- a/addon/mixin.js +++ b/addon/mixin.js @@ -131,6 +131,11 @@ export default Mixin.create(setValidityMixin, { }); }); + let errors = this.errors; + Object.keys(this.validations).forEach(function(property) { + set(errors, property, emberArray()); + }); + this._validate(); },