From: Alan Knowles Date: Mon, 1 Nov 2010 06:32:19 +0000 (+0800) Subject: Sample/Window.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=948e50fa7782acdae2613ee7043bd8d87f49b1e7 Sample/Window.js --- diff --git a/Sample/Window.js b/Sample/Window.js index 4fcef9ab1..c256e6d6e 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -2847,11 +2847,24 @@ Window=new XObject({ console_message : function (self, object, p0, p1) { print(object); // console.log(object); + + + if (object.match(/^\{/)) { + this.refreshRequired = true; + this.lastRedraw = 0; + this.runRefresh(); + } + + if (!object.match(/^\{/)) { //this.get('/Terminal').feed(object); return true; // do not handle!!! -> later maybe in console.. } + + + + // console.log(object); var val = JSON.parse(object); @@ -2988,9 +3001,9 @@ Window=new XObject({ return null; //new WebKit.WebView(); } }, - redraws : 0, id : "view", pack : "add", + redraws : 0, init : function() { XObject.prototype.init.call(this); // this may not work!?