Thanks, I had seen a similar example, and it works fine for single 
instances.

But when you are inside a loop, going through an array of many elements 
on the page with each or invoke, there doesn't seem to be any reference 
possible to the object in question. I ended up using Event.element 
inside my anonymous function, but I live in fear that IE will think 
that's too ambiguous.

Is there some way to use bind or bindAsEventListener when you are 
looping through a collection with invoke?

Walter

On Aug 24, 2007, at 3:50 PM, Matt Foster wrote:

>
> Yeah isn't that a great bug in IE, there is no way for a click event
> to reference its currentTarget, just where it originates from,
> fantastic.
>
> I worked out a solution to that using bindAsEventListener and just
> attaching the object i was observing to the argument scope of the
> bound function.
>
> check out the full article here,
>
> http://www.positionabsolute.net/blog/2007/04/function-bind.php
>
> On Aug 24, 2:56 pm, "Dan Dorman" <[EMAIL PROTECTED]> wrote:
>> On 8/24/07, Walter Lee Davis <[EMAIL PROTECTED]> wrote:
>>
>>> How production-worthy is the RC of 1.6?
>>
>> I just rewrote a big chunk of JS here at work to utilize 1.6's
>> features, and it's been pretty solid so far.
>>
>> :Dan Dorman
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to