JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 Aug 2014 10:01:45 +0000 (18:01 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 Aug 2014 10:01:45 +0000 (18:01 +0800)
JsRender/NodeToVala.vala

index 4287c99..10fda9c 100644 (file)
@@ -234,12 +234,14 @@ public class JsRender.NodeToVala : Object {
                                this.ignore(k);
                                continue;
                        } 
+                       var kname = vv[vv.length-1];
+                       if ( kname == "xns" || kname 
                        // is it a class property...
-                       if cls.props.has_key(vv[vv.length-1])) {
+                       if (cls.props.has_key(vv[vv.length-1])) {
                                continue;
                        }
                        
-                       this.ret += this.pad + "public " + kk + ";\n";
+                       this.ret += this.pad + "public " + k + ";\n";
                        
                        this.ignore(k);