Have item actually nested inside table cell.

This commit is contained in:
Jürg Lehni 2012-11-14 21:16:33 -08:00
parent 61c37f0858
commit 81257a28ec
2 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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;