* Removes DOM mutation listeners from the given template element.
*/
protected void removeTemplateElementListeners
(XBLOMTemplateElement template,
ImportRecord ir) {
XBLEventSupport es
= (XBLEventSupport) template.initializeEventSupport();
es.removeImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMAttrModified",
ir.templateMutationListener, false);
es.removeImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeInserted",
ir.templateMutationListener, false);
es.removeImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeRemoved",
ir.templateMutationListener, false);
es.removeImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMCharacterDataModified",
ir.templateMutationListener, false);
}