refs #18314, fixes #18314, fixes dojo/on example

Fix to dojo/on documentation mentioned a couple of times in feedback...