File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ export default Ember.Component.extend({
11
11
_operators : Ember . computed ( function ( ) {
12
12
var operators = this . get ( 'operators' ) ;
13
13
operators [ 'eq' ] = function ( a , b ) { return String ( a ) == b ; } ;
14
- operators [ 'has' ] = function ( a , b ) { return a && ( a . contains ( b ) || a . isAny ( 'id' , b ) ) ; } ;
15
- operators [ 'in' ] = function ( a , b ) { return b . split ( ',' ) . contains ( String ( a ) ) ; } ;
14
+ operators [ 'has' ] = function ( a , b ) { return a && Ember . isArray ( a ) && ( a . contains ( b ) || a . isAny ( 'id' , b ) ) ; } ;
15
+ operators [ 'in' ] = function ( a , b ) { return b && b . split && b . split ( ',' ) . contains ( String ( a ) ) ; } ;
16
16
operators [ 'not' ] = function ( a , b ) { return a != b ; } ;
17
- operators [ 'has_not' ] = function ( a , b ) { return a && ( ! a . contains ( b ) && ! a . isAny ( 'id' , b ) ) ; } ;
17
+ operators [ 'has_not' ] = function ( a , b ) { return a && Ember . isArray ( a ) && ( ! a . contains ( b ) && ! a . isAny ( 'id' , b ) ) ; } ;
18
18
return operators ;
19
19
} ) ,
20
20
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ let ValidationMixin = Ember.Mixin.create({
18
18
__operators : { } ,
19
19
_operators : Ember . computed ( function ( ) {
20
20
var operators = this . get ( '__operators' ) ;
21
- operators [ 'eq' ] = function ( a , b ) { return a == b ; } ;
22
- operators [ 'has' ] = function ( a , b ) { return a && ( a . contains ( b ) || a . isAny ( 'id' , b ) ) ; } ;
23
- operators [ 'in' ] = function ( a , b ) { return b . split ( ',' ) . contains ( String ( a ) ) ; } ;
21
+ ooperators [ 'eq' ] = function ( a , b ) { return String ( a ) == b ; } ;
22
+ operators [ 'has' ] = function ( a , b ) { return a && Ember . isArray ( a ) && ( a . contains ( b ) || a . isAny ( 'id' , b ) ) ; } ;
23
+ operators [ 'in' ] = function ( a , b ) { return b && b . split && b . split ( ',' ) . contains ( String ( a ) ) ; } ;
24
24
operators [ 'not' ] = function ( a , b ) { return a != b ; } ;
25
- operators [ 'has_not' ] = function ( a , b ) { return a && ( ! a . contains ( b ) && ! a . isAny ( 'id' , b ) ) ; } ;
25
+ operators [ 'has_not' ] = function ( a , b ) { return a && Ember . isArray ( a ) && ( ! a . contains ( b ) && ! a . isAny ( 'id' , b ) ) ; } ;
26
26
return operators ;
27
27
} ) ,
28
28
You can’t perform that action at this time.
0 commit comments