discourse/app/assets/javascripts/truth-helpers/addon/helpers
Godfrey Chan 0fa92529ed
DEV: enable plain functions as helpers in Ember (#22023)
* Enable "plain function as helpers" polyfill

This feature landed in Ember 4.5+, but this polyfill would allow
it to work on 3.25+

References

RFC: https://github.com/emberjs/rfcs/pull/756
Update: https://github.com/emberjs/rfcs/pull/788
Guides: https://github.com/ember-learn/guides-source/pull/1924

* Convert truth-helpers to use plain functions

Mainly to test that the polyfill is working, but it's a good
refactor anyway.
2023-06-15 19:57:41 +02:00
..
and.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
eq.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
gt.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
gte.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
includes.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
lt.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
lte.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
not-eq.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
not.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00
or.js DEV: enable plain functions as helpers in Ember (#22023) 2023-06-15 19:57:41 +02:00