Hmmm ... What do you mean by "access to #foo?"

--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of patrick
Sent: Friday, April 09, 2010 1:05 PM
To: Prototype & script.aculo.us
Subject: [Proto-Scripty] Re: class.create question

On Apr 9, 9:53 am, "Jonathan Rosenberg" <[email protected]> wrote:
> Ok, I haven't thought this out fully, but how about
>
>                Event.addBehavior({
>                     '#foo:click': (function() {
>                          someFunc(this)).bind(this)
>                    }

Right..  that gives me access to the class, but then I lose #foo...

That's what I am wondering-- how can I have access to both #foo and
the class inside that function?

-patrick

-- 
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to