Renamed $pattern to $path in on() docstring