Open barmaglot92 opened 7 years ago
It does indeed use .bind if it's available.
Creating a truly universal autobind decorator is harder than one thinks. There are numerous edge cases that have been found over the years, one of which is when you autobind a method that calls the same method on the super prototype and that method was also had used autobind
I try to include brief descriptions in the online comments about why things are done
// Autobound method calling super.sameMethod() which is also autobound and so on.
More insight into the super.sameMethod()
problem needing WeakMap #20 and #21
Hi, why you didn`t use .bind for autobind decorator. So why you use WeekMap and so complicated realization?