@@ -20,7 +20,7 @@ JavaScriptCompiler.prototype = {
20
20
}
21
21
} ,
22
22
depthedLookup : function ( name ) {
23
- return [ this . aliasable ( 'this .lookup' ) , '(depths, "' , name , '")' ] ;
23
+ return [ this . aliasable ( 'container .lookup' ) , '(depths, "' , name , '")' ] ;
24
24
} ,
25
25
26
26
compilerInfo : function ( ) {
@@ -189,7 +189,7 @@ JavaScriptCompiler.prototype = {
189
189
}
190
190
}
191
191
192
- let params = [ 'depth0' , 'helpers' , 'partials' , 'data' ] ;
192
+ let params = [ 'container' , ' depth0', 'helpers' , 'partials' , 'data' ] ;
193
193
194
194
if ( this . useBlockParams || this . useDepths ) {
195
195
params . push ( 'blockParams' ) ;
@@ -359,7 +359,7 @@ JavaScriptCompiler.prototype = {
359
359
// Escape `value` and append it to the buffer
360
360
appendEscaped : function ( ) {
361
361
this . pushSource ( this . appendToBuffer (
362
- [ this . aliasable ( 'this .escapeExpression' ) , '(' , this . popStack ( ) , ')' ] ) ) ;
362
+ [ this . aliasable ( 'container .escapeExpression' ) , '(' , this . popStack ( ) , ')' ] ) ) ;
363
363
} ,
364
364
365
365
// [getContext]
@@ -428,7 +428,7 @@ JavaScriptCompiler.prototype = {
428
428
if ( ! depth ) {
429
429
this . pushStackLiteral ( 'data' ) ;
430
430
} else {
431
- this . pushStackLiteral ( 'this .data(data, ' + depth + ')' ) ;
431
+ this . pushStackLiteral ( 'container .data(data, ' + depth + ')' ) ;
432
432
}
433
433
434
434
this . resolvePath ( 'data' , parts , 0 , true , strict ) ;
@@ -466,7 +466,7 @@ JavaScriptCompiler.prototype = {
466
466
// If the `value` is a lambda, replace it on the stack by
467
467
// the return value of the lambda
468
468
resolvePossibleLambda : function ( ) {
469
- this . push ( [ this . aliasable ( 'this .lambda' ) , '(' , this . popStack ( ) , ', ' , this . contextName ( 0 ) , ')' ] ) ;
469
+ this . push ( [ this . aliasable ( 'container .lambda' ) , '(' , this . popStack ( ) , ', ' , this . contextName ( 0 ) , ')' ] ) ;
470
470
} ,
471
471
472
472
// [pushStringParam]
@@ -669,7 +669,7 @@ JavaScriptCompiler.prototype = {
669
669
options = this . objectLiteral ( options ) ;
670
670
params . push ( options ) ;
671
671
672
- this . push ( this . source . functionCall ( 'this .invokePartial' , '' , params ) ) ;
672
+ this . push ( this . source . functionCall ( 'container .invokePartial' , '' , params ) ) ;
673
673
} ,
674
674
675
675
// [assignToHash]
@@ -771,7 +771,7 @@ JavaScriptCompiler.prototype = {
771
771
programParams . push ( 'depths' ) ;
772
772
}
773
773
774
- return 'this .program(' + programParams . join ( ', ' ) + ')' ;
774
+ return 'container .program(' + programParams . join ( ', ' ) + ')' ;
775
775
} ,
776
776
777
777
useRegister : function ( name ) {
@@ -965,8 +965,8 @@ JavaScriptCompiler.prototype = {
965
965
// Avoid setting fn and inverse if neither are set. This allows
966
966
// helpers to do a check for `if (options.fn)`
967
967
if ( program || inverse ) {
968
- options . fn = program || 'this .noop' ;
969
- options . inverse = inverse || 'this .noop' ;
968
+ options . fn = program || 'container .noop' ;
969
+ options . inverse = inverse || 'container .noop' ;
970
970
}
971
971
972
972
// The parameters go on to the stack in order (making sure that they are evaluated in order)
@@ -1061,7 +1061,7 @@ function strictLookup(requireTerminal, compiler, parts, type) {
1061
1061
}
1062
1062
1063
1063
if ( requireTerminal ) {
1064
- return [ compiler . aliasable ( 'this .strict' ) , '(' , stack , ', ' , compiler . quotedString ( parts [ i ] ) , ')' ] ;
1064
+ return [ compiler . aliasable ( 'container .strict' ) , '(' , stack , ', ' , compiler . quotedString ( parts [ i ] ) , ')' ] ;
1065
1065
} else {
1066
1066
return stack ;
1067
1067
}
0 commit comments