search: Fix previous commit

It was pushed by accident before it was tested...
This commit is contained in:
Jasper St. Pierre 2013-11-02 20:09:14 -04:00
parent 9cd7ea9371
commit 4965b1ca7b
3 changed files with 5 additions and 5 deletions

View File

@ -894,8 +894,8 @@ const AppSearchProvider = new Lang.Class({
callback(this._appSys.initial_search(terms)); callback(this._appSys.initial_search(terms));
}, },
getSubsearchResultSet: function(terms, callback, cancellable) { getSubsearchResultSet: function(previousResults, terms, callback, cancellable) {
callbacl(this._appSys.subsearch(previousResults, terms)); callback(this._appSys.subsearch(previousResults, terms));
}, },
activateResult: function(result) { activateResult: function(result) {

View File

@ -249,7 +249,7 @@ const RemoteSearchProvider = new Lang.Class({
cancellable); cancellable);
}, },
getSubsearchResultSet: function(previousResults, newTerms, cancellable) { getSubsearchResultSet: function(previousResults, newTerms, callback, cancellable) {
this.proxy.GetSubsearchResultSetRemote(previousResults, newTerms, this.proxy.GetSubsearchResultSetRemote(previousResults, newTerms,
Lang.bind(this, this._getResultsFinished, callback), Lang.bind(this, this._getResultsFinished, callback),
cancellable); cancellable);

View File

@ -112,8 +112,8 @@ const SearchSystem = new Lang.Class({
if (isSubSearch) { if (isSubSearch) {
this._providers.forEach(Lang.bind(this, function(provider) { this._providers.forEach(Lang.bind(this, function(provider) {
let previousResults = previousResults[provider.id]; let previousProviderResults = previousResults[provider.id];
provider.getSubsearchResultSet(previousResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable); provider.getSubsearchResultSet(previousProviderResults, terms, Lang.bind(this, this._gotResults, provider), this._cancellable);
})); }));
} else { } else {
this._providers.forEach(Lang.bind(this, function(provider) { this._providers.forEach(Lang.bind(this, function(provider) {