Fix Clearing docs having incorrectly-named JS events, fixes #5179