Merge "CrossWikiUnreadFilterWidget: Remove unused this.localSource"

This commit is contained in:
jenkins-bot 2016-06-27 13:28:06 +00:00 committed by Gerrit Code Review
commit 711e2f84c2
2 changed files with 0 additions and 12 deletions

View file

@ -60,12 +60,6 @@
this.aggregate( { choose: 'pageFilterChoose' } );
this.connect( this, { pageFilterChoose: 'onPageFilterChoose' } );
// Always have a local wiki
this.localSource = new mw.echo.ui.PageFilterWidget(
this.model.getSourcePagesModel(),
mw.config.get( 'wgDBname' )
);
this.$element
.addClass( 'mw-echo-ui-crossWikiUnreadFilterWidget' )
.append(
@ -159,9 +153,6 @@
);
widgets.push( widget );
if ( source !== mw.config.get( 'wgDBname' ) ) {
this.localSource = widget;
}
}
this.clearItems();

View file

@ -75,9 +75,6 @@
optionWidgets = [],
sourcePages = this.model.getSourcePages( this.source );
if ( !sourcePages ) {
return;
}
for ( i = 0; i < sourcePages.length; i++ ) {
widget = new mw.echo.ui.PageNotificationsOptionWidget( {
label: sourcePages[ i ].title,