1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 08:45:45 +01:00

Make 'strictfocus' a currently undocumented sitemap option.

This commit is contained in:
Kris Maglione
2011-03-12 14:36:07 -05:00
parent 9ba3635bc1
commit b7822c5cb2
5 changed files with 41 additions and 10 deletions

View File

@@ -311,7 +311,10 @@ var Option = Class("Option", {
* @property {function(CompletionContext, Args)} This option's completer.
* @see CompletionContext
*/
completer: function completer(context) {
completer: function completer(context, extra) {
if (/map$/.test(this.type) && extra.value == null)
return;
if (this.values)
context.completions = this.values;
},

View File

@@ -950,7 +950,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
*/
makeXPath: function makeXPath(nodes) {
return array(nodes).map(util.debrace).flatten()
.map(function (node) [node, "xhtml:" + node]).flatten()
.map(function (node) /^[a-z]+:/.test(node) ? node : [node, "xhtml:" + node]).flatten()
.map(function (node) "//" + node).join(" | ");
},