doc: document value of `this` inside listeners

Fixes #5326.