Ignore unused parameters

Also added the common global of CustomEvent