aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/completion.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/completion.js b/lib/completion.js
index b608a2e5..00ae526f 100644
--- a/lib/completion.js
+++ b/lib/completion.js
@@ -20,8 +20,8 @@ var completion = (function() {
createInternalMatch: function(type, item, action) {
var url = item.url;
var parts = [type, url, item.title];
- var str = parts.join(' ');
- action = action || {func: 'createActionOpenUrl', args: [url]};
+ var str = parts.join(" ");
+ action = action || { func: "navigateToUrl", args: [url] };
function createLazyCompletion(query) {
return new LazyCompletion(url.length / fuzzyMatcher.calculateRelevancy(query, str), function() {
@@ -87,7 +87,7 @@ var completion = (function() {
return new LazyCompletion(-2, function() {
return {
html: createCompletionHtml(desc, term),
- action: {func: 'createActionOpenUrl', args: [utils.createFullUrl(url)]},
+ action: { func: "navigateToUrl", args: [utils.createFullUrl(url)] },
}})
}.proxy(this));
},
@@ -101,8 +101,8 @@ var completion = (function() {
return new LazyCompletion(-1, function() {
return {
html: createCompletionHtml(isUrl ? "goto" : "search", query),
- action: {func: "createActionOpenUrl", args: isUrl ? [utils.createFullUrl(query)]
- : [utils.createSearchUrl(query)]},
+ action: { func: "navigateToUrl",
+ args: isUrl ? [utils.createFullUrl(query)] : [utils.createSearchUrl(query)] }
}});
},
@@ -175,7 +175,7 @@ var completion = (function() {
chrome.tabs.getAllInWindow(null, function(tabs) {
this.asyncCompleter.resultsReady(tabs.map(function(tab) {
return this.asyncCompleter.createInternalMatch("tab", tab,
- { func: "createActionSwitchToTab", args: [tab.id] });
+ { func: "switchToTab", args: [tab.id] });
}.proxy(this)));
}.proxy(this));
}
@@ -244,8 +244,8 @@ var completion = (function() {
bestOffset = offset;
best = new LazyCompletion(-1.5, function() {
return {
- html: createCompletionHtml('site', domain),
- action: {func: 'createActionOpenUrl', args: [protocol + '://' + domain]},
+ html: createCompletionHtml("site", domain),
+ action: { func: "navigateToUrl", args: [protocol + "://" + domain] },
}});
});
});