3 ms·
According to https://news.ycombinator.com/item?id=27585467 https://news.ycombinator.com/item?id=27585467 the repo is https://github.com/magwo/elevatorsaga https
by mdaniel 4y ago
According to https://news.ycombinator.com/item?id=27585467 https://news.ycombinator.com/item?id=27585467 the repo is https://github.com/magwo/elevatorsaga https://github.com/magwo/elevatorsaga but is also abandoned
To answer your first question: https://github.com/magwo/elevatorsaga/blob/master/elevator.js#L166 https://github.com/magwo/elevatorsaga/blob/master/elevator.j...
Be aware that it's just `eval(textarea.value)` so you can `console.log` or (presumably) `debugger;` in your code to inspect whatever you want. The developer tools likely will allow you to set breakpoints in the framework's code, too
I was sad the `thing.on("some_event", () => { this. <-- isn't "thing"`, I had to `.bind(thing)` manually
- eyelidlessness 4y agoAt a glance (mobile sorry), it looks like .on is jQuery? If so, you don’t need bind, you just need `function`: thing.on("some_event", function() { // `this` is `thing` }) Arrow functions close over `this` from their outer scope.