There is a proposal that introduces a new way to bind. You can do for example
class Test {
doIt() { ... }
}
let t = new Test();
doSomething(::this.doIt);
But what if doIt
requires one or more params, how can I bind these too ?
::this.doIt(1,2,3)
Which executes the function immediately. Is there a way to do this?