This should at least squash the events bug, copied from google maps d.ts.