@@ -235,18 +235,18 @@ export default function dom ( parsed, source, options, names ) {
235
235
}
236
236
237
237
if ( generator . hasComponents ) {
238
- builders . init . addLine ( `this.__renderHooks = [];` ) ;
238
+ builders . init . addLine ( `this._renderHooks = [];` ) ;
239
239
}
240
240
241
241
if ( generator . hasComplexBindings ) {
242
242
builders . init . addBlock ( deindent `
243
- this.__bindings = [];
243
+ this._bindings = [];
244
244
this._fragment = renderMainFragment( this._state, this );
245
245
if ( options.target ) this._fragment.mount( options.target, null );
246
- while ( this.__bindings .length ) this.__bindings .pop()();
246
+ while ( this._bindings .length ) this._bindings .pop()();
247
247
` ) ;
248
248
249
- builders . set . addLine ( `while ( this.__bindings .length ) this.__bindings .pop()();` ) ;
249
+ builders . set . addLine ( `while ( this._bindings .length ) this._bindings .pop()();` ) ;
250
250
} else {
251
251
builders . init . addBlock ( deindent `
252
252
this._fragment = renderMainFragment( this._state, this );
@@ -256,8 +256,8 @@ export default function dom ( parsed, source, options, names ) {
256
256
257
257
if ( generator . hasComponents ) {
258
258
const statement = deindent `
259
- while ( this.__renderHooks .length ) {
260
- var hook = this.__renderHooks .pop();
259
+ while ( this._renderHooks .length ) {
260
+ var hook = this._renderHooks .pop();
261
261
hook.fn.call( hook.context );
262
262
}
263
263
` ;
@@ -269,7 +269,7 @@ export default function dom ( parsed, source, options, names ) {
269
269
if ( templateProperties . onrender ) {
270
270
builders . init . addBlock ( deindent `
271
271
if ( options._root ) {
272
- options._root.__renderHooks .push({ fn: template.onrender, context: this });
272
+ options._root._renderHooks .push({ fn: template.onrender, context: this });
273
273
} else {
274
274
template.onrender.call( this );
275
275
}
0 commit comments