@@ -8,7 +8,7 @@ var set = Ember.set;
8
8
var setValidityMixin = Ember . Mixin . create ( {
9
9
isValid :
Ember . computed ( '[email protected] ' , function ( ) {
10
10
var compactValidators = get ( this , 'validators' ) . compact ( ) ;
11
- var filteredValidators = Ember . EnumerableUtils . filter ( compactValidators , function ( validator ) {
11
+ var filteredValidators = compactValidators . filter ( function ( validator ) {
12
12
return ! get ( validator , 'isValid' ) ;
13
13
} ) ;
14
14
@@ -141,7 +141,7 @@ export default Ember.Mixin.create(setValidityMixin, {
141
141
if ( validatorName === 'inline' ) {
142
142
pushValidator . call ( this , createInlineClass ( this . validations [ property ] [ validatorName ] . callback ) ) ;
143
143
} else if ( this . validations [ property ] . hasOwnProperty ( validatorName ) ) {
144
- Ember . EnumerableUtils . forEach ( lookupValidator . call ( this , validatorName ) , pushValidator , this ) ;
144
+ lookupValidator . call ( this , validatorName ) . forEach ( pushValidator , this ) ;
145
145
}
146
146
}
147
147
} ,
@@ -156,7 +156,7 @@ export default Ember.Mixin.create(setValidityMixin, {
156
156
var self = this ;
157
157
return this . _validate ( ) . then ( function ( vals ) {
158
158
var errors = get ( self , 'errors' ) ;
159
- if ( Ember . EnumerableUtils . indexOf ( vals , false ) > - 1 ) {
159
+ if ( vals . indexOf ( false ) > - 1 ) {
160
160
return Ember . RSVP . reject ( errors ) ;
161
161
}
162
162
return errors ;
0 commit comments