Update jQuery event API to use spaces