Builder/Provider/File/Base.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:31:06 +0000 (16:31 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:31:06 +0000 (16:31 +0800)
Builder/Provider/File/Base.js

index 1d0bc8f..33b70e1 100644 (file)
@@ -33,7 +33,12 @@ Base = XObject.define(
         
         save : function()
         {
-            File.write(this.path, JSON.stringify(this.items);
+            var write = { }; 
+            var data = ['name', 'parent', 'title', 'items'].forEach( function(k) {
+                write[k] = _this[k];
+            });
+            print("WRITE: " + this.path + "\n" + JSON.stringify(write));
+            //File.write(this.path, JSON.stringify(write));
         }
         
         /**