smartxml: only send change event when node is currently in a document tree
[fnpeditor.git] / src / wlxml / wlxml.js
index 0f6fa20..4310bb9 100644 (file)
@@ -105,7 +105,7 @@ $.extend(WLXMLDocument.prototype, {
     ElementNodeFactory: WLXMLElementNode,
 
     loadXML: function(xml) {
-        smartxml.Document.prototype.loadXML.call(this, xml);
+        smartxml.Document.prototype.loadXML.call(this, xml, {silent: true});
         $(this.dom).find(':not(iframe)').addBack().contents()
             .filter(function() {return this.nodeType === Node.TEXT_NODE;})
             .each(function() {