fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smartxml: fix
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
a60ae9a
..
5004863
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-184,7
+184,7
@@
$.extend(ElementNode.prototype, {
detach: function() {
var next;
- if(
parent
&& this.isSurroundedByTextElements()) {
+ if(
this.parent()
&& this.isSurroundedByTextElements()) {
next = this.next();
this.prev().appendText(next.getText());
next.detach();