File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 281
281
topOverflow = - scrollTop + offset . top - containerHeight ,
282
282
bottomOverflow = scrollTop + viewPortHeight - ( offset . top + height + containerHeight ) ;
283
283
284
- orientation = ( Math . max ( topOverflow , bottomOverflow ) === topOverflow )
285
- ? 'top'
286
- : 'bottom' ;
284
+ orientation = ( Math . max ( topOverflow , bottomOverflow ) === topOverflow ) ? 'top' : 'bottom' ;
287
285
}
288
286
289
287
if ( orientation === 'top' ) {
388
386
that . selectHint ( ) ;
389
387
return ;
390
388
}
391
- // Fall through to RETURN
389
+ /* falls through */
392
390
case keys . RETURN :
393
391
if ( that . selectedIndex === - 1 ) {
394
392
that . hide ( ) ;
607
605
608
606
suggest : function ( ) {
609
607
if ( this . suggestions . length === 0 ) {
610
- this . options . showNoSuggestionNotice ? this . noSuggestions ( ) : this . hide ( ) ;
608
+ if ( this . options . showNoSuggestionNotice ) {
609
+ this . noSuggestions ( ) ;
610
+ } else {
611
+ this . hide ( ) ;
612
+ }
611
613
return ;
612
614
}
613
615
851
853
852
854
adjustScroll : function ( index ) {
853
855
var that = this ,
854
- activeItem = that . activate ( index )
856
+ activeItem = that . activate ( index ) ;
855
857
856
858
if ( ! activeItem ) {
857
859
return ;
You can’t perform that action at this time.
0 commit comments