andreypopp / andreypopp/autobind-decorator
If bound methods or fields are re-assigned, they become shared between instances
Abierto
bug
help wanted
PR welcome
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.4k
- Forks
- 65
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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);
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.