mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 03:39:46 +08:00
7b8343d482
There is a risk of overriding and then deleting a prop of the context in case of a naming clash between localName and that prop, e.g. ```js class Test { item = "foo"; items = [1, 2]; } const template = ` {{#each items as |item|}} {{item}} {{/each}} `; const compiledTemplate = compile(template); const object = new Test(); // object.item === "foo" const output = compiledTemplate(object, RUNTIME_OPTIONS); // object.item === undefined ``` …but I think we can accept this risk and just be careful.`#each` isn't widely used in hbr anyway (as proven by the other long-standing and recently fixed bug) and hbr is on its way out anyway. |
||
---|---|---|
.. | ||
admin | ||
custom-proxy | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-i18n | ||
discourse-markdown-it | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
float-kit | ||
locales | ||
pretty-text | ||
select-kit | ||
theme-transpiler | ||
truth-helpers | ||
.npmrc | ||
handlebars-shim.js | ||
polyfills.js | ||
service-worker.js.erb |