Builder/Provider/Templates
[app.Builder.js] / XObject.js
index c3e1f16..65883ec 100644 (file)
@@ -220,8 +220,11 @@ XObject.prototype = {
                 var c = n % _this.config.n_columns;
                 var r = Math.floor(n/_this.config.n_columns);
                 i.pack = [ 'attach', c, c+1, r, r+1, 
-                        i.x_options || 5, i.x_padding || 0,
-                        i.y_options || 5, i.y_padding || 0
+                        typeof(i.x_options) == 'undefined' ?  5 : i.x_options,
+                        typeof(i.y_options) == 'undefined' ?  5 : i.y_options,
+                        typeof(i.x_padding) == 'undefined' ?  0 : i.x_padding,
+                        typeof(i.x_padding) == 'undefined' ?  0 : i.x_padding
+                       
                 ]
             }
             
@@ -235,12 +238,7 @@ XObject.prototype = {
         
         // delete this.listeners ?
         // do again so child props work!
-        for (var i in this.config) {
-            if (i[0] != '.') { // problem with Gtk.Window... - not decided on a better way to handle this.
-                continue;
-            }
-            this.parent.el.child_set_property(this.el, i.substring(1), this.config[i]);
-        }
+       
         // do we need to call 'init here?'
     },