discourse/app/assets/javascripts/discourse-common/addon
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
..
config DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
helpers DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
lib DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
utils DEV: Introduce a @debounce(delay) decorator (#18667) 2022-10-19 20:43:58 +02:00
.gitkeep
resolver.js DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00