Closed justinbmeyer closed 4 years ago
This part:
if(!(args[0] instanceof Scope)){
args[0] = scope.getTemplateContext().add(args[0]);
}
Also makes it so {{ foo(val='bar') }}
always creates a new context.
I'm updating the docs so I'll remove this reference.
Closed by #720
https://github.com/canjs/can-stache/blob/1e9dd197d3ad21999cf217532cac9853a3178f90/expressions/call.js#L99
We don't need to pass that second argument (nodeList). I think that should be removed.