Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 07:59:32 +0000 (15:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Oct 2010 07:59:32 +0000 (15:59 +0800)
Sample/Window.js

index 7e0d140..74ee6b2 100644 (file)
@@ -803,7 +803,9 @@ Window=new XObject({
                                                                                         this.el.set_value(iter, 2, [GObject.TYPE_STRING, this.nodeToJSON(n)]);
                                                                                     }
                                                                                         //this.currentTree = this.toJS(false, true)[0];
+                                                                                    var d = new Date();
                                                                                     this.file.items = this.toJS(false, false);
+                                                                                    print ("TO JS in " + ((new Date()) - d) + "ms");
                                                                                   //  print("AFTER CHANGED");
                                                                                     //console.dump(this.file.items);
                                                                                     this.file.save();