Ensure attachEvent listener is called in context of the raphael node.