From 64d042cd7d4cd9786bb5305bb4f066d061052e13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 24 Oct 2013 10:06:55 +0200 Subject: [PATCH 1/1] wlxml: stop triggering contentSet event twice --- src/wlxml/wlxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.20.1