RCFilters: Fix typo in removing a saved query
authorMoriel Schottlender <moriel@gmail.com>
Thu, 29 Jun 2017 00:06:12 +0000 (17:06 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Thu, 29 Jun 2017 00:06:12 +0000 (17:06 -0700)
Bug: T169107
Change-Id: I7c1535f6ae75159a069ebde7db781f6a875fcb3c

resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.SavedQueriesModel.js

index efccc11..8536570 100644 (file)
                        // Check if this item was the default
                        if ( String( this.getDefault() ) === String( queryID ) ) {
                                // Nulify the default
-                               this.savedQueriesModel.setDefault( null );
+                               this.setDefault( null );
                        }
 
-                       this.savedQueriesModel.removeItems( [ query ] );
+                       this.removeItems( [ query ] );
                }
        };