Index: trunk/parsers/wikidom/lib/synth/views/es.TableBlockRowView.js |
— | — | @@ -6,13 +6,8 @@ |
7 | 7 | */ |
8 | 8 | es.TableBlockRowView = function( model ) { |
9 | 9 | es.ViewList.call( this, model, $( '<tr>' ) ); |
10 | | - es.ViewListItem.call( this, model, this.$ ); |
11 | | - |
12 | | - var classes = this.$.attr('class'); |
13 | | - for ( var name in this.model.attributes ) { |
14 | | - this.$.attr( name, this.model.attributes[name] ); |
15 | | - } |
16 | | - this.$.addClass(classes); |
| 10 | + es.ViewListItem.call( this, model, this.$ ); |
| 11 | + this.$.attr( this.model.attributes ); |
17 | 12 | }; |
18 | 13 | |
19 | 14 | /** |
Index: trunk/parsers/wikidom/lib/synth/views/es.TableBlockView.js |
— | — | @@ -7,9 +7,7 @@ |
8 | 8 | es.TableBlockView = function( model ) { |
9 | 9 | es.ViewList.call( this, model, $( '<table>' ) ); |
10 | 10 | es.BlockView.call( this, model, this.$ ); |
11 | | - for ( var name in this.model.attributes ) { |
12 | | - this.$.attr( name, this.model.attributes[name] ); |
13 | | - } |
| 11 | + this.$.attr( this.model.attributes ); |
14 | 12 | this.$.addClass( 'editSurface-tableBlock' ); |
15 | 13 | }; |
16 | 14 | |