Attaching properties to bubbled event object in Javascript
问题 In Chrome/Firefox I can attach my custom properties to an event object in one handler and read them in a different handler for the same event even if the event handling is bubbled up. I cannot do the same in IE. My custom property is lost while event is bubbled up. Do you know if there's any solution or workaround to this? The following is an example of that problem: <div id="div1"> <input type="button" value="Foo" id="button1"> </div> <script> function attach(el, event, fn) { if (el