X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/df1aaa5ae8434788bb67662782fe7e5324ac9786..d85935046e6c2d008f6759112b9f8df35e2a4efe:/src/smartxml/smartxml.js?ds=inline diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index d87ec54..d085742 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -574,6 +574,12 @@ $.extend(Document.prototype, Backbone.Events, { } }, + transaction: function(callback, context) { + this.startTransaction(); + callback.call(context); + this.endTransaction(); + }, + getNodeByPath: function(path) { var toret = this.root; path.forEach(function(idx) {