fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: fixing nodeMoved event handling in Canvas
[fnpeditor.git]
/
src
/
smartxml
/
core.js
diff --git
a/src/smartxml/core.js
b/src/smartxml/core.js
index
665f9d5
..
ec2c643
100644
(file)
--- a/
src/smartxml/core.js
+++ b/
src/smartxml/core.js
@@
-13,7
+13,7
@@
var INSERTION = function(implementation) {
nodeParent,
returned;
options = options || {};
nodeParent,
returned;
options = options || {};
- if(!(this.document.containsNode(this))) {
+ if(!(this.document.containsNode(this))
|| !insertion.isNew
) {
nodeParent = insertion.ofNode.parent();
}
returned = implementation.call(this, insertion.ofNode);
nodeParent = insertion.ofNode.parent();
}
returned = implementation.call(this, insertion.ofNode);