Permalink
Browse files

two fixes to ember-easyForm and ember-validations for the errors object

  • Loading branch information...
1 parent 2c572c2 commit f618b0e4fb72314d56bb3a9d95e1325925ba6ad0 Justin Faulkner committed Apr 2, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 app/assets/javascripts/ember-easyForm.js
  2. +2 −1 app/assets/javascripts/ember-validations.js
@@ -200,7 +200,7 @@ Ember.EasyForm.Input = Ember.View.extend({
if(this.get('context').get('errors') !== undefined) {
this.reopen({
error: function() {
- return this.get('context').get('errors').get(this.property) !== undefined;
+ return this.get('context').get('errors.'+this.property) !== undefined;
}.property('context.errors.'+this.property)
});
}
@@ -144,7 +144,8 @@ Ember.Validations.Mixin = Ember.Mixin.create({
}
for(index1 = 0; index1 < toRun.length; index1++) {
property = toRun[index1];
- this.errors.set(property, undefined);
+ try {this.errors.set(property, undefined)}
+ catch(e){}
delete this.errors[property];
for(validator in object.validations[property]) {

0 comments on commit f618b0e

Please sign in to comment.