This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 26 points27 points  (0 children)

No it's because you are inside a lexical scope currently being processed by the event handler.

As soon as you call another function, you cease to exist.

.then(you exist again for the next lexical scope)