Small speed optimization for the Gecko platform. Allowing event handlers to be enabled and disabled.