search: Fix previous commit
It was pushed by accident before it was tested...
This commit is contained in:
parent
9cd7ea9371
commit
4965b1ca7b
@ -894,8 +894,8 @@ const AppSearchProvider = new Lang.Class({
|
||||
callback(this._appSys.initial_search(terms));
|
||||
},
|
||||
|
||||
getSubsearchResultSet: function(terms, callback, cancellable) {
|
||||
callbacl(this._appSys.subsearch(previousResults, terms));
|
||||
getSubsearchResultSet: function(previousResults, terms, callback, cancellable) {
|
||||
callback(this._appSys.subsearch(previousResults, terms));
|
||||
},
|
||||
|
||||
activateResult: function(result) {
|
||||
|
@ -249,7 +249,7 @@ const RemoteSearchProvider = new Lang.Class({
|
||||
cancellable);
|
||||
},
|
||||
|
||||
getSubsearchResultSet: function(previousResults, newTerms, cancellable) {
|
||||
getSubsearchResultSet: function(previousResults, newTerms, callback, cancellable) {
|
||||
this.proxy.GetSubsearchResultSetRemote(previousResults, newTerms,
|
||||
Lang.bind(this, this._getResultsFinished, callback),
|
||||
cancellable);
|
||||
|
@ -112,8 +112,8 @@ const SearchSystem = new Lang.Class({
|
||||
|
||||
if (isSubSearch) {
|
||||
this._providers.forEach(Lang.bind(this, function(provider) {
|
||||
let previousResults = previousResults[provider.id];
|
||||
provider.getSubsearchResultSet(previousResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable);
|
||||
let previousProviderResults = previousResults[provider.id];
|
||||
provider.getSubsearchResultSet(previousProviderResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable);
|
||||
}));
|
||||
} else {
|
||||
this._providers.forEach(Lang.bind(this, function(provider) {
|
||||
|
Loading…
Reference in New Issue
Block a user