render: function render(context, partials) {
return this.r(context, partials);
},
Given this code from Twitter's new hogan.js library to demonstrate the issue; what is the goal of naming the function twice?
If it wanted to, the function render
would be able to call itself via render()
, however, render()
is not accessible anywhere else.
Additionally, in a stack trace, you'd see render
as the function name, rather than anonymous function
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With