Merge "selenium: invoke jobs to enforce eventual consistency"
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / ui / mw.rcfilters.ui.ViewSwitchWidget.js
index fef8567..72d2203 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw ) {
+( function () {
        /**
         * A widget for the footer for the default view, allowing to switch views
         *
                this.controller = controller;
                this.model = model;
 
-               this.buttons = new OO.ui.ButtonGroupWidget( {
+               this.buttons = new mw.rcfilters.ui.GroupWidget( {
+                       events: {
+                               click: 'buttonClick'
+                       },
                        items: [
                                new OO.ui.ButtonWidget( {
                                        data: 'namespaces',
@@ -35,7 +38,6 @@
 
                // Events
                this.model.connect( this, { update: 'onModelUpdate' } );
-               this.buttons.aggregate( { click: 'buttonClick' } );
                this.buttons.connect( this, { buttonClick: 'onButtonClick' } );
 
                this.$element
@@ -73,4 +75,4 @@
        mw.rcfilters.ui.ViewSwitchWidget.prototype.onButtonClick = function ( buttonWidget ) {
                this.controller.switchView( buttonWidget.getData() );
        };
-}( mediaWiki ) );
+}() );