Hi,
Please direct assistance request to the spinoffs mailing list (http://
groups.google.com/group/rubyonrails-spinoffs) as this list is reserved
for development-related discussions only.
Thank you!
Tobie
On Feb 14, 6:20 pm, kojilab <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a class with DOM elements as properties. I want to bind events
> within the class to the ements. Unfortunately I am getting an error
> telling me those properties are not defined. Here's an simplfied
> example of what I'm trying to achieve.
>
> var MyClass=Class.create()
> MyClass.prototye = {
> initialize: function(element1, element2){
> this.element1=element1;
> this.element2=element2;
> this.element1.observe('click',this.hide);
> },
>
> hide: function(){
> this.element2.hide();
> }
>
> Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---