FLUID-4942: Fixes Infusion event system bug with Prototype.js.