Thanks, but one last question:

Is this what I try possible, maybe with Prototypes "bind"?

On May 6, 12:33 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> On 5/6/07, Christoph Roeder <[EMAIL PROTECTED]> wrote:
>
>
>
> >     add: {
> >         txt: function(){
> >             console.log(this.textarea);
> >         }
> >     }
>
> "this" keyword inside the txt() function refers to the object contained in
> "add", not the my_test class like you wanted. Try this instead:
>
> addTxt: function(){
>   console.log(this.textarea);
>
> }
>
> Anyway, this is not a JavaScript support group - it's only for Prototype
> development discussion.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to