Also, delegated events get two variables passed to thief handlers, the event and the target. The e.target below will refer to the parent element that you called addevent on. Mouse enter isn't needed with delegation; just use mouseover:relay(li) and use that second argument.
Sorry for any typos. Tiny buttons, big thumbs... On Feb 1, 2011, at 9:41 AM, stratboy <[email protected]> wrote: > Hi! take a look: > > http://jsfiddle.net/stratboy/pmz9M/1/ > > if you don't comment the morph call here: > > 'mouseenter:relay(li)':function(e){ > var t = $(e.target); > t.morph('.hover'); > } > > you get errors. Why? Is it a bug?
