discourse/app/assets/javascripts/discourse
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
..
app FIX: Retry updating webview background color (#28912) 2024-09-16 11:58:36 -04:00
config DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
lib DEV: Upgrade babel & remove vendored safari-bugfix transformation (#28208) 2024-08-05 10:35:26 +01:00
public/assets/scripts DEV: Improve built-in browser performance marks/measurements (#26758) 2024-05-02 23:07:36 +01:00
scripts DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00
tests FIX: Support getters in hbr #each context (#28941) 2024-09-17 12:07:07 +02:00
.ember-cli DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
.npmrc
.watchmanconfig
ember-cli-build.js DEV: Skip babel for ace-builds and json-editor (#28659) 2024-09-02 10:07:43 +01:00
package.json Build(deps): Bump ember-auto-import from 2.7.4 to 2.8.0 (#28933) 2024-09-17 01:23:58 +02:00
testem.js DEV: prevents chrome to ask for fav search engine (#28192) 2024-08-01 15:49:07 +02:00