discourse/app/assets/javascripts/discourse-common/addon/utils
Jarek Radosz 09e4eb4137
DEV: Introduce a @debounce(delay) decorator (#18667)
An example from tests:

```js
class TestStub {
  counter = 0;

  @debounce(50)
  increment() {
    this.counter++;
  }
}

const stub = new TestStub();

stub.increment();
stub.increment();
stub.increment();
await settled();

assert.strictEqual(stub.counter, 1);
```
2022-10-19 20:43:58 +02:00
..
category-macro.js FEATURE: Display pending posts on user’s page 2021-11-29 10:26:33 +01:00
decorator-alias.js DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
decorators.js DEV: Introduce a @debounce(delay) decorator (#18667) 2022-10-19 20:43:58 +02:00
dom-utils.js DEV: drops jquery from scrolling-post-stream (#15313) 2021-12-17 14:52:42 +01:00
escape-regexp.js DEV: Add escapeRegExp util (#17051) 2022-06-10 10:37:54 +10:00
extract-value.js
handle-descriptor.js FIX: In prod builds classes may not be "instancesof" EmberObject (#18137) 2022-08-30 17:36:20 +02:00
is-descriptor.js
macro-alias.js DEV: Add deprecation notice to discourse-common/utils/decorators (#17052) 2022-06-09 13:07:58 -05:00
watched-words.js FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00