e.target is not extended for speed reasons (if you dont need it to be
extended you dont wont the additional $ call for each mousemove for
example)
just use $(e.target) instead and you should be done.
On Jan 14, 2009, at 15:31, Itay Moav wrote:
getParent and getFirst not working in IE 7
I can't decide if this is due to some strange settings in my
browser, or mootools simply didn't implement those for IE 7.
The code is:
function eventHandler(E)
{
var Elm=E.target;
alert(Elm.getParent('li').innerHTML);
}
function init() //shoots on the domReady event
{
var ULs=$$('ul');
for(var i=0;i<ULs.length;i++)
{
ULs[i].addEvent('click',eventHandler);
}
}
//HTML
<ul>
<li><div>.....</div><div>......</div></li>
....
...
...
</ul>
.....
....
<ul>
<li><div>.....</div><div>......</div></li>
....
...
...
</ul>
--
Jan - MooTools comitter
twitter/blog: http://kassens.net