Remove perf tracking code that was moved to WikimediaEvents in Ib300af5c
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / mw.rcfilters.init.js
index 5ab32ea..da11973 100644 (file)
@@ -29,9 +29,7 @@
                                savedLinksListWidget = new mw.rcfilters.ui.SavedLinksListWidget(
                                        controller, savedQueriesModel, { $overlay: $overlay }
                                ),
-                               currentPage = mw.config.get( 'wgCanonicalNamespace' ) +
-                                       ':' +
-                                       mw.config.get( 'wgCanonicalSpecialPageName' );
+                               specialPage = mw.config.get( 'wgCanonicalSpecialPageName' );
 
                        // TODO: The changesListWrapperWidget should be able to initialize
                        // after the model is ready.
@@ -66,8 +64,8 @@
 
                        controller.replaceUrl();
 
-                       if ( currentPage === 'Special:Recentchanges' ||
-                               currentPage === 'Special:Recentchangeslinked' ) {
+                       if ( specialPage === 'Recentchanges' ||
+                               specialPage === 'Recentchangeslinked' ) {
                                $topLinks = $( '.mw-recentchanges-toplinks' ).detach();
 
                                rcTopSection = new mw.rcfilters.ui.RcTopSectionWidget(
@@ -76,7 +74,7 @@
                                filtersWidget.setTopSection( rcTopSection.$element );
                        } // end Special:RC
 
-                       if ( currentPage === 'Special:Watchlist' ) {
+                       if ( specialPage === 'Watchlist' ) {
                                $( '#contentSub, form#mw-watchlist-resetbutton' ).detach();
                                $watchlistDetails = $( '.watchlistDetails' ).detach().contents();