Merge "SearchInputWidget: Actually connect to change event"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 9 Oct 2017 16:55:42 +0000 (16:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 9 Oct 2017 16:55:42 +0000 (16:55 +0000)
resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js

index 40c0a1d..c25ab45 100644 (file)
                        } );
                }.bind( this ) );
 
+               this.connect( this, {
+                       change: 'onChange'
+               } );
+
                this.$element.addClass( 'oo-ui-textInputWidget-type-search' );
                this.updateSearchIndicator();
                this.connect( this, {
         * @see OO.ui.SearchInputWidget#onChange
         */
        mw.widgets.SearchInputWidget.prototype.onChange = function () {
-               mw.widgets.SearchInputWidget.parent.prototype.onChange.call( this );
                this.updateSearchIndicator();
        };