mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-09 14:45: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;
|
this.loaded[group] = true;
|
||||||
|
|
||||||
if (applyBindings)
|
if (applyBindings)
|
||||||
for each (let group in groups)
|
for each (let group in groups) {
|
||||||
if (group in template.bindings)
|
if ("bindings" in applyBindings && group in applyBindings.bindings)
|
||||||
|
applyBindings.bindings[group](node, applyBindings);
|
||||||
|
else if (group in template.bindings)
|
||||||
template.bindings[group](node, applyBindings);
|
template.bindings[group](node, applyBindings);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user