Micro-optimizing Node.dispatchEvent