File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 341341 // if text is not a function we assume it to be a key name
342342 if ( ! $ . isFunction ( text ) ) text = function ( item ) { return item [ data . text ] ; } ;
343343 data = data . results ;
344- }
344+ }
345345
346346 return function ( query ) {
347347 var t = query . term . toUpperCase ( ) , filtered = { } ;
348348 if ( t === "" ) {
349349 query . callback ( { results : data } ) ;
350350 return ;
351- }
351+ }
352352 filtered . result = $ ( data )
353353 . filter ( function ( ) { return text ( this ) . toUpperCase ( ) . indexOf ( t ) >= 0 ; } )
354354 . get ( ) ;
609609 for ( var i = 0 ; i < attrs . length ; i ++ ) {
610610 var matches = attrs [ i ] . replace ( / \s / g, '' )
611611 . match ( / w i d t h : ( ( [ - + ] ? ( [ 0 - 9 ] * \. ) ? [ 0 - 9 ] + ) ( p x | e m | e x | % | i n | c m | m m | p t | p c ) ) / ) ;
612- if ( matches == null || matches . length < 1 )
613- continue ;
612+ if ( matches != null && matches . length >= 1 )
614613 return matches [ 1 ] ;
615614 }
616-
617615 return this . opts . element . width ( ) ;
618- }
616+ } ;
619617
620618
621619 function SingleSelect2 ( ) {
You can’t perform that action at this time.
0 commit comments