Index: trunk/extensions/VisualEditor/modules/parser/ext.core.TemplateHandler.js |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | if ( tplExpandData.overallAsync ) { |
181 | 181 | this.manager.env.dp( 'TemplateHandler._expandTemplate: calling back ', |
182 | 182 | 'after parser func ', prefix, ' with res:', res ); |
183 | | - return tplExpandData.cb( res, false ); |
| 183 | + return tplExpandData.cb( res, false, true ); |
184 | 184 | } else { |
185 | 185 | this.manager.env.dp( 'TemplateHandler._expandTemplate: sync return ', |
186 | 186 | 'after parser func ', prefix, ' with res:', res ); |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | new EndTagTk( 'a' ) |
204 | 204 | ]; |
205 | 205 | if ( tplExpandData.overallAsync ) { |
206 | | - return tplExpandData.cb( res, false ); |
| 206 | + return tplExpandData.cb( res, false, true ); |
207 | 207 | } else { |
208 | 208 | return { tokens: res }; |
209 | 209 | } |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | |
297 | 297 | if ( tplExpandData.overallAsync ) { |
298 | 298 | this.manager.env.dp( 'TemplateHandler._onEnd: calling back with res:', res ); |
299 | | - tplExpandData.cb( res, false ); |
| 299 | + tplExpandData.cb( res, false, true ); |
300 | 300 | } else { |
301 | 301 | this.manager.env.dp( 'TemplateHandler._onEnd: synchronous return!' ); |
302 | 302 | tplExpandData.result = { tokens: res }; |