mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
Follow-up cf95dbd
: Fix incorrect scope in loop
Change-Id: Iae5ec0321e19bfa1c5f53326bf9d9a3082d96f77
This commit is contained in:
parent
021e456751
commit
c8b691b8d1
|
@ -117,7 +117,6 @@ ve.ui.MWReferenceSearchWidget.prototype.onListNodeUpdate = function () {
|
|||
*/
|
||||
ve.ui.MWReferenceSearchWidget.prototype.buildIndex = function () {
|
||||
var groups = this.internalList.getNodeGroups();
|
||||
var widget = this;
|
||||
|
||||
if ( this.built ) {
|
||||
return;
|
||||
|
@ -172,7 +171,7 @@ ve.ui.MWReferenceSearchWidget.prototype.buildIndex = function () {
|
|||
// Make URLs searchable
|
||||
// eslint-disable-next-line no-loop-func
|
||||
view.$element.find( 'a[href]' ).each( function () {
|
||||
text += ' ' + widget.getAttribute( 'href' );
|
||||
text += ' ' + this.getAttribute( 'href' );
|
||||
} );
|
||||
|
||||
this.index.push( {
|
||||
|
|
Loading…
Reference in a new issue