Re: Proposal: Function.prototype.bindContext

2020-10-17 Thread #!/JoePea
gt; Od: Andrea Giammarchi >> Komu: es-discuss@mozilla.org >> Datum: 17. 9. 2020 21:03:45 >> Předmět: Proposal: Function.prototype.bindContext >> >> I've found myself (once again) polluting the `Function.prototype` with a >> lazy method that, once invoked, grants

Re: Proposal: Function.prototype.bindContext

2020-09-17 Thread Andrea Giammarchi
ntext > is lost. > > -- Původní e-mail -- > Od: Andrea Giammarchi > Komu: es-discuss@mozilla.org > Datum: 17. 9. 2020 21:03:45 > Předmět: Proposal: Function.prototype.bindContext > > I've found myself (once again) polluting the `Function.prototype` with a > lazy method

Re: Proposal: Function.prototype.bindContext

2020-09-17 Thread Adam Eisenreich
. -- Původní e-mail -- Od: Andrea Giammarchi Komu: es-discuss@mozilla.org Datum: 17. 9. 2020 21:03:45 Předmět: Proposal: Function.prototype.bindContext " I've found myself (once again) polluting the `Function.prototype` with a lazy method that, once invoked, grants that the returned

Proposal: Function.prototype.bindContext

2020-09-17 Thread Andrea Giammarchi
I've found myself (once again) polluting the `Function.prototype` with a lazy method that, once invoked, grants that the returned bound function is always the same, per context. # Use Case It's still a common footgun to add events either via `context.method` or via