mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Have item actually nested inside table cell.
This commit is contained in:
parent
61c37f0858
commit
81257a28ec
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue