From 81257a28ecc00fbfe38919b1245825d4046526a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 14 Nov 2012 21:16:33 -0800 Subject: [PATCH] Have item actually nested inside table cell. --- src/browser/DomElement.js | 4 ++-- src/ui/Component.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser/DomElement.js b/src/browser/DomElement.js index d14fda1c..a887b6f7 100644 --- a/src/browser/DomElement.js +++ b/src/browser/DomElement.js @@ -79,12 +79,12 @@ var DomElement = new function() { }, set: function(el, key, value) { - if (!el) - return el; if (typeof key !== 'string') { for (var name in key) if (key.hasOwnProperty(name)) this.set(el, name, key[name]); + } else if (!el || value === undefined) { + return el; } else if (special.test(key)) { el[key] = value; } else if (key in translated) { diff --git a/src/ui/Component.js b/src/ui/Component.js index a5a79a4d..b712ef9d 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -87,7 +87,7 @@ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{ }); this._element = DomElement.create('tr', [ this._labelItem = DomElement.create('td'), - 'td', this._inputItem + 'td', [this._inputItem] ]); Base.each(obj, function(value, key) { this[key] = value;