https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113257
Revision: 113257
Author: gwicke
Date: 2012-03-07 17:36:33 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
Set allTokensProcessed flag for async callbacks from the template expander.
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/parser/ext.core.TemplateHandler.js
Modified:
trunk/extensions/VisualEditor/modules/parser/ext.core.TemplateHandler.js
===================================================================
--- trunk/extensions/VisualEditor/modules/parser/ext.core.TemplateHandler.js
2012-03-07 17:32:09 UTC (rev 113256)
+++ trunk/extensions/VisualEditor/modules/parser/ext.core.TemplateHandler.js
2012-03-07 17:36:33 UTC (rev 113257)
@@ -179,7 +179,7 @@
if ( tplExpandData.overallAsync ) {
this.manager.env.dp( 'TemplateHandler._expandTemplate:
calling back ',
'after parser func ', prefix, ' with
res:', res );
- return tplExpandData.cb( res, false );
+ return tplExpandData.cb( res, false, true );
} else {
this.manager.env.dp( 'TemplateHandler._expandTemplate:
sync return ',
'after parser func ', prefix, ' with
res:', res );
@@ -202,7 +202,7 @@
new EndTagTk( 'a' )
];
if ( tplExpandData.overallAsync ) {
- return tplExpandData.cb( res, false );
+ return tplExpandData.cb( res, false, true );
} else {
return { tokens: res };
}
@@ -295,7 +295,7 @@
if ( tplExpandData.overallAsync ) {
this.manager.env.dp( 'TemplateHandler._onEnd: calling back with
res:', res );
- tplExpandData.cb( res, false );
+ tplExpandData.cb( res, false, true );
} else {
this.manager.env.dp( 'TemplateHandler._onEnd: synchronous
return!' );
tplExpandData.result = { tokens: res };
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs