Fix #8003 - undo code
[roobuilder] / src / JsRender / NodeToJs.vala
index eae9235..a96ad8e 100644 (file)
@@ -89,7 +89,12 @@ public class JsRender.NodeToJs : Object {
        public string munge ( )
        {
                //return this.mungeToString(this.node);
-
+               if (this.node.as_source_version > 0 && 
+                       this.node.as_source_version == this.node.updated_count
+                       && this.node.as_source != ""
+               ) {
+                       return this.node.as_source;
+               }
                
                this.checkChildren();
                this.readProps();
@@ -108,7 +113,11 @@ public class JsRender.NodeToJs : Object {
                //}
 
                this.mungeOut();
+               
+               this.node.as_source_version = this.node.updated_count;
+               this.node.as_source == this.ret;
                return this.ret;
+
                 
        } 
                /**