javascript - How to check event Listeners on an element in IE9 -
i have page has td elements in table user can click , drag reorder. page built using prototype. in ie9, works, in ie9, when try click , drag, highlight of things on page. suspicion handler isn't attaching td element.
is there way check listeners attached element in ie9?
(the code not in place can share it, why have not posted any.)
edit: turns out using prototype 1.6.1, , problem caused not knowing ie9 , ie10 less awful < 9. it's going bigger fix thought.
the latest prototypejs (1.7.1) stores event observers in event cache
so example <div>
id 'mydiv'
<div id="mydiv"></div>
after create observer via observe()
or on()
methods this
$('mydiv').observe('click',function(){ alert('click happened'); });
the click property of event cache set below
event.cache[$('mydiv')._prototypeuid].click
however might not source of problem said working in other browsers except ie9 - there way can extract of code , put jsfiddle , post link?
Comments
Post a Comment