X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6479f1b730495626b2d97c3be2fc903ff34e3a5b..64d042cd7d4cd9786bb5305bb4f066d061052e13:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index f4aa9fe..b81b0f0 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -242,10 +242,12 @@ $.extend(Document.prototype, Backbone.Events, { return new this.TextNodeFactory(nativeNode, this); }, - loadXML: function(xml) { + loadXML: function(xml, options) { + options = options || {}; defineDocumentProperties(this, $(parseXML(xml))); - - this.trigger('contentSet'); + if(!options.silent) { + this.trigger('contentSet'); + } }, toXML: function() {