@@ -3470,7 +3470,7 @@ S2.define('select2/data/ajax',[
34703470
34713471 if ( self . options . get ( 'debug' ) && window . console && console . error ) {
34723472 // Check to make sure that the response included a `results` key.
3473- if ( ! results || ! results . results || ! $ . isArray ( results . results ) ) {
3473+ if ( ! results || ! results . results || ! Array . isArray ( results . results ) ) {
34743474 console . error (
34753475 'Select2: The AJAX results did not return an array in the ' +
34763476 '`results` key of the response.'
@@ -3528,7 +3528,7 @@ S2.define('select2/data/tags',[
35283528
35293529 decorated . call ( this , $element , options ) ;
35303530
3531- if ( $ . isArray ( tags ) ) {
3531+ if ( Array . isArray ( tags ) ) {
35323532 for ( var t = 0 ; t < tags . length ; t ++ ) {
35333533 var tag = tags [ t ] ;
35343534 var item = this . _normalizeItem ( tag ) ;
@@ -4766,7 +4766,7 @@ S2.define('select2/defaults',[
47664766 }
47674767 }
47684768
4769- if ( $ . isArray ( options . language ) ) {
4769+ if ( Array . isArray ( options . language ) ) {
47704770 var languages = new Translation ( ) ;
47714771 options . language . push ( 'en' ) ;
47724772
@@ -5581,7 +5581,7 @@ S2.define('select2/core',[
55815581
55825582 var newVal = args [ 0 ] ;
55835583
5584- if ( $ . isArray ( newVal ) ) {
5584+ if ( Array . isArray ( newVal ) ) {
55855585 newVal = $ . map ( newVal , function ( obj ) {
55865586 return obj . toString ( ) ;
55875587 } ) ;
@@ -5735,4 +5735,4 @@ S2.define('jquery.select2',[
57355735
57365736 // Return the Select2 instance for anyone who is importing it.
57375737 return select2 ;
5738- } ) ) ;
5738+ } ) ) ;
0 commit comments