Hello peeps! I'm fairly new to Prototype and just about getting the hang of things so please be gentle with me :-)
I've got this sticky little problem that's giving me grief. I want a function to be private and accessible to a couple of a classes methods. I've tried making it private by placing it in initialize but of course it's only accessible within the initialize function itself. Here's a bit of pseudo code to demonstrate var Bear = Class.create({ initialize: function(){ var privateFunction = function(args) { code } }, method: function(){ var something = privateFunction(args) <-- PROBLEM! } }); Any help greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---