andreypopp / andreypopp/autobind-decorator
If bound methods or fields are re-assigned, they become shared between instances
Aperta
bug
help wanted
PR welcome
- Lingua principale
- JavaScript
- Stelle
- 1.4k
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If bound methods or fields are re-assigned, they become shared between instances
Found this issue while trying to debounce bound method
Below test will fail
```
class A {
@boundMethod
bound() {}
}
const a = new A();
const b = new A();
a.bound = {
foo: 'bar'
};
assert.notEqual(a.bound, b.bound);
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.