From 1067bdcc2f6038b6ffd6a9e3100b0ff75eeb672a Mon Sep 17 00:00:00 2001
From: =?utf8?q?Aleksander=20=C5=81ukasz?=
 <aleksander.lukasz@nowoczesnapolska.org.pl>
Date: Tue, 18 Feb 2014 16:05:07 +0100
Subject: [PATCH] smartxml: TextNodes don't contain other nodes - let them
 state that

---
 src/smartxml/smartxml.js | 5 +++++
 1 file changed, 5 insertions(+)

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);
-- 
2.20.1