How can `bind` and `attachEvent` both be present?