Skip to content

Commit e0aeaa8

Browse files
committed
Autocomplete: remove extra "that" variable
1 parent fb22d35 commit e0aeaa8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/widgets/autocomplete.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,8 @@ $.widget( "ui.autocomplete", {
269269
label = ui.item.attr( "aria-label" ) || item.value;
270270
if ( label && String.prototype.trim.call( label ).length ) {
271271
clearTimeout( this.liveRegionTimer );
272-
var that = this;
273272
this.liveRegionTimer = this._delay( function() {
274-
that.liveRegion.html( $( "<div>" ).text( label ) );
273+
this.liveRegion.html( $( "<div>" ).text( label ) );
275274
}, 100 );
276275
}
277276
},
@@ -668,9 +667,8 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
668667
message = this.options.messages.noResults;
669668
}
670669
clearTimeout( this.liveRegionTimer );
671-
var that = this;
672670
this.liveRegionTimer = this._delay( function() {
673-
that.liveRegion.html( $( "<div>" ).text( message ) );
671+
this.liveRegion.html( $( "<div>" ).text( message ) );
674672
}, 100 );
675673
}
676674
} );

0 commit comments

Comments
 (0)