fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: fix - better handle node removal in various views
[fnpeditor.git]
/
src
/
editor
/
modules
/
nodePane
/
nodePane.js
diff --git
a/src/editor/modules/nodePane/nodePane.js
b/src/editor/modules/nodePane/nodePane.js
index
f7e6694
..
85a6fdd
100644
(file)
--- a/
src/editor/modules/nodePane/nodePane.js
+++ b/
src/editor/modules/nodePane/nodePane.js
@@
-35,6
+35,9
@@
return function(sandbox) {
var module = this;
if(!listens) {
wlxmlNodeElement.document.on('change', function(event) {
var module = this;
if(!listens) {
wlxmlNodeElement.document.on('change', function(event) {
+ if(currentNode && !currentNode.isInDocument()) {
+ module.setNodeElement(null);
+ }
if(event.type === 'nodeAttrChange' && event.meta.node.sameNode(currentNode)) {
module.setNodeElement(currentNode);
}
if(event.type === 'nodeAttrChange' && event.meta.node.sameNode(currentNode)) {
module.setNodeElement(currentNode);
}