https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103493

Revision: 103493
Author:   tparscal
Date:     2011-11-17 19:05:06 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Fixed the last of the rendering to much bugs - now things are rendered when 
needed only

Modified Paths:
--------------
    trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js

Modified: 
trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js 
2011-11-17 19:00:09 UTC (rev 103492)
+++ trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js 
2011-11-17 19:05:06 UTC (rev 103493)
@@ -55,7 +55,6 @@
        }
        this.emit( 'afterPush', childView );
        this.emit( 'update' );
-       this.renderContent();
 };
 
 es.DocumentViewBranchNode.prototype.onAfterUnshift = function( childModel ) {
@@ -69,7 +68,6 @@
        this.$.prepend( childView.$ );
        this.emit( 'afterUnshift', childView );
        this.emit( 'update' );
-       childView.renderContent();
 };
 
 es.DocumentViewBranchNode.prototype.onAfterPop = function() {
@@ -133,9 +131,10 @@
        this.emit.apply( this, ['afterSplice'].concat( args ) );
        if ( args.length >= 3 ) {
                for ( i = 2, length = args.length; i < length; i++ ) {
-                       args[i] = args[i].renderContent();
+                       args[i].renderContent();
                }
        }
+       this.emit( 'update' );
 };
 
 es.DocumentViewBranchNode.prototype.onAfterSort = function() {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to