—
var t = new testClass();
t.boundTests
ƒ () {
console.log(this.thing);
}
— Welp it's frustrating to see reduce
not work, haha
— Went with this instead of reduce:
Object.keys(tests).forEach(
name =>
this.boundTests[name] = tests[name].bind(this)
);
Message permanent page
— I was missing rest operator somewhere but at that point forEach
is simpler
— Heh, that would work, if I used singletons in the Kernel
—
for (var name in this.prototype.SCP) {
this.SCP[name] = this.prototype.SCP[name].bind(this);
};
— Made a little utility function that does it for me