src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Sun, 10 Mar 2024 03:27:22 +0000 (11:27 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 10 Mar 2024 03:27:22 +0000 (11:27 +0800)
src/JsRender/NodeToVala.vala

index a64443a..05797ab 100644 (file)
@@ -292,7 +292,7 @@ public abstract class JsRender.NodeToVala : NodeWriter {
                        var is_raw = prop.ptype == NodePropType.RAW;
                        
                        // what's the type.. - if it's a string.. then we quote it..
-                       if (val.type == "string" && !is_raw) {
+                       if (prop.type == "string" && !is_raw) {
                                 v = "\"" +  v.escape("") + "\"";
                        }
                        // if it's a string...