From 14916bf7bd5221eea8e0210d91a6b96b53c55578 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 19 Feb 2011 02:22:10 -0500 Subject: [PATCH] Allow specifying a local set of bindings for XMLToDom. --- common/modules/highlight.jsm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/modules/highlight.jsm b/common/modules/highlight.jsm index 5d26af32..b21809b4 100644 --- a/common/modules/highlight.jsm +++ b/common/modules/highlight.jsm @@ -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); + } }, /**