From 1bf8a9e5e18ae6b44a8157144f012935e831c8ab Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 16 Apr 2012 15:42:29 +0200 Subject: [PATCH] Small tweak in comment about onlyinclude forcing buffered expansion Change-Id: Ib324e24c51c97e07e6737bf23f16db07043b69ab --- modules/parser/ext.core.NoIncludeOnly.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/parser/ext.core.NoIncludeOnly.js b/modules/parser/ext.core.NoIncludeOnly.js index b2d9868bf3..ee4152de45 100644 --- a/modules/parser/ext.core.NoIncludeOnly.js +++ b/modules/parser/ext.core.NoIncludeOnly.js @@ -10,6 +10,8 @@ var TokenCollector = require( './ext.util.TokenCollector.js' ).TokenCollector; /** * OnlyInclude sadly forces synchronous template processing, as it needs to * hold onto all tokens in case an onlyinclude block is encountered later. + * This can fortunately be worked around by caching the tokens after + * onlyinclude processing (which is a good idea anyway). */ function OnlyInclude( manager, isInclude ) { this.manager = manager;