JsRender/Roo.vala
authorAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 06:01:53 +0000 (14:01 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 06:01:53 +0000 (14:01 +0800)
JsRender/Roo.vala

index 6d83021..6af4a2a 100644 (file)
@@ -294,7 +294,7 @@ namespace JsRender {
                var nodeName = currentElement.node_name;
                var tagName = currentElement.tag_name;
 
-               if  (nodeName == '#text') {
+               if  (nodeName == "#text") {
                        this.html += currentElement.node_value;
                        return;
                }
@@ -342,7 +342,7 @@ namespace JsRender {
                while (currentElementChild) {
                        // Formatting code (indent the tree so it looks nice on the screen)
 
-                       if  (currentElementChild.node_name == '#text') {
+                       if  (currentElementChild.node_name == "#text" {
                            this.html = currentElementChild.node_value;
                            i++;
                            currentElementChild = currentElement.child_nodes.item(i);