andreypopp / andreypopp/autobind-decorator
If bound methods or fields are re-assigned, they become shared between instances
Đang mở
bug
help wanted
PR welcome
- Ngôn ngữ chính
- JavaScript
- Star
- 1.4k
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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);
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.