File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ define([
125
125
return this . _buildURL ( this . oldAttributes . action , data . args ) ;
126
126
}
127
127
128
- return ( typeof data === 'string' ) ? data : this . oldAttributes . action ;
128
+ return typeof data === 'string' ? data : this . oldAttributes . action ;
129
129
} ,
130
130
131
131
/**
Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ define([
603
603
this . element . addClass ( this . options . loadingClass ) ;
604
604
605
605
if ( this . options . delay ) {
606
- if ( typeof ( this . options . data ) !== 'undefined' ) {
606
+ if ( typeof this . options . data !== 'undefined' ) {
607
607
response ( this . filter ( this . options . data , term ) ) ;
608
608
}
609
609
clearTimeout ( this . _searchTimeout ) ;
@@ -707,7 +707,7 @@ define([
707
707
708
708
if ( Array . isArray ( o . source ) ) {
709
709
response ( this . filter ( o . source , term ) ) ;
710
- } else if ( typeof ( o . source ) === 'string' ) {
710
+ } else if ( typeof o . source === 'string' ) {
711
711
ajaxData = { } ;
712
712
ajaxData [ this . options . termAjaxArgument ] = term ;
713
713
@@ -721,7 +721,7 @@ define([
721
721
response . apply ( response , arguments ) ;
722
722
} , this )
723
723
} , o . ajaxOptions || { } ) ) ;
724
- } else if ( typeof ( o . source ) === 'function' ) {
724
+ } else if ( typeof o . source === 'function' ) {
725
725
o . source . apply ( o . source , arguments ) ;
726
726
}
727
727
} ,
You can’t perform that action at this time.
0 commit comments