а вот так
var myClass= Class.create(
{ initialize:function(str)
{ this.str=str ;
this.msg=function()
{alert ("privat"+this.str);}
} ,
public:function()
{alert ("public"+this.str)}
}
)
метод msg приватный или нет
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/prototype-scriptaculous/-/A83FErmgpk4J.
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.