r104500 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104499‎ | r104500 | r104501 >
Date:22:38, 28 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Removed setting contentLength from data.length - adding nodes adjusts the contentLength automatically
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js
@@ -17,7 +17,6 @@
1818 // Properties
1919 this.data = es.isArray( data ) ? data : [];
2020 this.attributes = es.isPlainObject( attributes ) ? attributes : {};
21 - this.contentLength = this.data.length;
2221
2322 // Auto-generate model tree
2423 var nodes = es.DocumentModel.createNodesFromData( this.data );

Status & tagging log