discourse/app/assets/javascripts/discourse-common/addon
Jarek Radosz 7b8343d482
FIX: Support getters in hbr #each context (#28941)
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.
2024-09-17 12:07:07 +02:00
..
config Revert "FIX: delay custom section reorder (#20781)" (#20786) 2023-03-23 11:27:12 +01:00
helpers DEV: add deprecation ids for base-url, fa-icon and chat service (#27911) 2024-07-15 14:29:17 +08:00
lib FIX: Support getters in hbr #each context (#28941) 2024-09-17 12:07:07 +02:00
utils PERF: Avoid excessive object creations in watched words (#27354) 2024-06-10 14:44:31 +02:00
.gitkeep
deprecation-workflow.js UX: Upgrade to fontawesome 6.6.0 (#28778) 2024-09-09 14:40:56 +01:00
resolver.js DEV: Update ember-resolver to 13.0.0 (#28876) 2024-09-12 12:09:11 +02:00