r97597 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97596‎ | r97597 | r97598 >
Date:06:08, 20 September 2011
Author:inez
Status:deferred
Tags:
Comment:
Small optimization
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/views/es.TableBlockCellView.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/synth/views/es.TableBlockCellView.js
@@ -6,15 +6,9 @@
77 */
88 es.TableBlockCellView = function( model ) {
99 es.ViewListItem.call( this, model, $( '<td>' ) );
10 -
1110 this.documentView = new es.DocumentView( this.model.documentModel );
1211 this.$.append( this.documentView.$ );
13 -
14 - var classes = this.$.attr('class');
15 - for ( var name in this.model.attributes ) {
16 - this.$.attr( name, this.model.attributes[name] );
17 - }
18 - this.$.addClass(classes);
 12+ this.$.attr( this.model.attributes );
1913 };
2014
2115 /**

Status & tagging log