fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: fix - block removing root node via insert/delete
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
d87ec54
..
d085742
100644
(file)
--- 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) {
getNodeByPath: function(path) {
var toret = this.root;
path.forEach(function(idx) {