From a09d4cbaf5ea2a1e322024eee9d04aa2aa928bdb Mon Sep 17 00:00:00 2001 From: Legoktm Date: Sat, 26 Jul 2014 01:03:56 +0000 Subject: [PATCH] Revert "New hooks for external integration to notification intiialization" No usecase has been provided, and additionally the hooks are not documented. Bartosz also points out that mw.hook calls are asynchronous and memorized. This reverts commit 9d3561afaf67811f622c317c90dbf09a6d8b9cbc. Change-Id: If735b46996fab3def835a54223412ef6d3105395 --- modules/special/ext.echo.special.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/special/ext.echo.special.js b/modules/special/ext.echo.special.js index 36ccf0d81..eb92347d6 100644 --- a/modules/special/ext.echo.special.js +++ b/modules/special/ext.echo.special.js @@ -1,26 +1,18 @@ ( function ( $, mw ) { 'use strict'; - var isInitialized = false; - mw.echo.special = { notcontinue: null, header: '', processing: false, - isInitialized: function() { - return isInitialized; - }, - /** * Initialize the property in special notification page. */ initialize: function () { var skin = mw.config.get('skin'); - isInitialized = true; - // Convert more link into a button $( '#mw-echo-more' ) .addClass( 'mw-ui-button mw-ui-primary' ) @@ -60,7 +52,6 @@ $( '#contentSub' ).empty(); } - mw.hook( 'ext.echo.special.onInitialize' ).fire( this ); }, /** @@ -109,7 +100,6 @@ unread.push( id ); } - mw.hook( 'ext.echo.special.onLoadMore' ).fire( $li, data ); mw.echo.setupNotificationLogging( $li, 'archive' ); if ( $li.find( '.mw-echo-dismiss' ).length ) {