andreypopp / andreypopp/autobind-decorator

If bound methods or fields are re-assigned, they become shared between instances

Đang mở
#76 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.