From 324597c8a71b60f339ae1f499d74b596bbd5d511 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 29 Apr 2009 20:29:14 -0400 Subject: [PATCH] Fix completion. --- common/content/completion.js | 4 ++-- common/content/style.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/completion.js b/common/content/completion.js index 974cd7df..20cda4ea 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1692,14 +1692,14 @@ function Completion() //{{{ { context.title = ["Menu Path", "Label"]; context.anchored = false; - context.keys = { text: "fullMenuPath", description: "label" }; + context.keys = { text: "fullMenuPath", description: function (item) item.getAttribute("label") }; context.completions = liberator.menuItems; }, option: function option(context, scope) { context.title = ["Option"]; - context.keys = { text: "fullMenuPath", description: function (item) item.getAttribute("label") }; + context.keys = { text: "names", description: "description" }; context.completions = options; if (scope) context.filters.push(function ({ item: opt }) opt.scope & scope); diff --git a/common/content/style.js b/common/content/style.js index 7d701918..004542f0 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -491,7 +491,7 @@ function Styles(name, store, serial) let (array = util.Array) { Styles.prototype = { - get sites() array([v.sites for ([k, v] in this.userSheets)]).flatten().uniq(), + get sites() array([v.sites for ([k, v] in this.userSheets)]).flatten().uniq().__proto__, completeSite: function (context, content) { let compl = [];