Skip to content

Instantly share code, notes, and snippets.

@yeco
Created May 22, 2010 01:28
Show Gist options
  • Select an option

  • Save yeco/409659 to your computer and use it in GitHub Desktop.

Select an option

Save yeco/409659 to your computer and use it in GitHub Desktop.
function Ball()
{
}
Ball.prototype = (function()
{
var private_stuff = function()
{
// Private code here
};
return {
constructor:Ball,
getBallInfo:function()
{
private_stuff();
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment