From: Alan Knowles Date: Thu, 27 May 2010 08:51:17 +0000 (+0800) Subject: XObject.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=a494e4f8e42cbe097ecd3d621f3b12e228abec67 XObject.js --- diff --git a/XObject.js b/XObject.js index a4db5b7b2..8be2323fe 100644 --- a/XObject.js +++ b/XObject.js @@ -215,8 +215,16 @@ XObject.prototype = { this.addListener(i, this.listeners[i]); } // delete this.listeners ? - - + // do again so child props work! + for (var i in this.config) { + if (i == 'type') { // problem with Gtk.Window... - not decided on a better way to handle this. + continue; + } + if (i == 'buttons') { // problem with Gtk.MessageDialog.. + continue; + } + this.el[i] = this.config[i]; + } // do we need to call 'init here?' },