mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 02:05:47 +01:00
Allow specifying a local set of bindings for XMLToDom.
This commit is contained in:
@@ -201,9 +201,12 @@ var Highlights = Module("Highlight", {
|
||||
this.loaded[group] = true;
|
||||
|
||||
if (applyBindings)
|
||||
for each (let group in groups)
|
||||
if (group in template.bindings)
|
||||
for each (let group in groups) {
|
||||
if ("bindings" in applyBindings && group in applyBindings.bindings)
|
||||
applyBindings.bindings[group](node, applyBindings);
|
||||
else if (group in template.bindings)
|
||||
template.bindings[group](node, applyBindings);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user