From: Aleksander Ɓukasz Date: Tue, 18 Feb 2014 15:05:07 +0000 (+0100) Subject: smartxml: TextNodes don't contain other nodes - let them state that X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/1067bdcc2f6038b6ffd6a9e3100b0ff75eeb672a?hp=f93de3e03a720d2b0373ed31977aeb4c47c7fb69 smartxml: TextNodes don't contain other nodes - let them state that --- diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 8924e7f..e2cdc9b 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -247,6 +247,11 @@ $.extend(TextNode.prototype, { return this.nativeNode.data; }, + + containsNode: function() { + return false; + }, + triggerTextChangeEvent: function() { var event = new events.ChangeEvent('nodeTextChange', {node: this}); this.document.trigger('change', event);