diff options
author | Kris Maglione <maglione.k@gmail.com> | 2009-04-29 20:29:14 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2009-04-29 20:29:14 -0400 |
commit | 324597c8a71b60f339ae1f499d74b596bbd5d511 (patch) | |
tree | e7e31338170b4de4b86ad2c7aa5eca1f2f5c3a14 | |
parent | 2578a77f52e4d09297d9d8e32eab68674c8e9c8d (diff) | |
download | pentadactyl-324597c8a71b60f339ae1f499d74b596bbd5d511.tar.gz |
Fix completion.
-rw-r--r-- | common/content/completion.js | 4 | ||||
-rw-r--r-- | 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 = []; |