summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js')
-rw-r--r--Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js b/Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js
index bdd07e06..b3c4c9af 100644
--- a/Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js
+++ b/Echo/modules/ui/mw.echo.ui.BundleNotificationItemWidget.js
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function () {
/**
* Bundle notification item widget.
* This widget is expandable and displays
@@ -189,8 +189,11 @@
this.expanded = show !== undefined ? !!show : !this.expanded;
if ( show ) {
+ // FIXME: Use CSS transition
+ // eslint-disable-next-line no-jquery/no-slide
this.getList().$element.slideDown();
} else {
+ // eslint-disable-next-line no-jquery/no-slide
this.getList().$element.slideUp();
}
};
@@ -219,4 +222,4 @@
mw.echo.ui.BundleNotificationItemWidget.prototype.getList = function () {
return this.listWidget;
};
-}( mediaWiki, jQuery ) );
+}() );