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:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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(" | ");
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user