X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/24f79c15db362b3646ce15d0dc6d9c703040e892..9ce300f6e7b27995b982c14b79785e8ca4bed4f0:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index cbb2ba8..18664c7 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -27,7 +27,9 @@ $.extend(DocumentNode.prototype, { }, detach: function() { + var parent = this.parent(); this._$.detach(); + this.triggerChangeEvent('nodeDetached', {parent: parent}); return this; },