From: Aleksander Ɓukasz Date: Thu, 24 Oct 2013 08:06:55 +0000 (+0200) Subject: wlxml: stop triggering contentSet event twice X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/64d042cd7d4cd9786bb5305bb4f066d061052e13?hp=1eebf7be27d533a4b8ca1dba2c64e574dee8e17d wlxml: stop triggering contentSet event twice --- diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 0f6fa20..4310bb9 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -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() {