JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Thu, 31 Jul 2014 10:02:57 +0000 (18:02 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 31 Jul 2014 10:02:57 +0000 (18:02 +0800)
JsRender/NodeToJs.vala

index 773dde6..f1f2ca1 100644 (file)
@@ -226,7 +226,15 @@ public class JsRender.NodeToJs : Object {
                        
                         
                        // next.. is it a function.. or a raw string..
-                       if (kk[0][0] == '|' || kk[0][0] == '$' ) {
+                       if (
+                               kk[0][0] == '|' 
+                               || 
+                               kk[0][0] == '$' 
+                               || 
+                               kk[0] == "function"
+                           || 
+                               kk[0] == "function"
+                               ) {
                                // does not hapepnd with arrays.. 
                                if (v.length < 1) {  //if (typeof(el) == 'string' && !obj[i].length) { //skip empty.
                                        continue;