Skip to content

Instantly share code, notes, and snippets.

@jponge
Created February 6, 2009 21:37
Show Gist options
  • Save jponge/59631 to your computer and use it in GitHub Desktop.
Save jponge/59631 to your computer and use it in GitHub Desktop.
var Sample = function()
{
var prv =
{
name: "",
set_name: function(name)
{
this.name = name;
},
get_name: function()
{
return this.name;
}
};
var pub =
{
do_something_amazing: function()
{
prv.set_name("Mr Bean");
return prv.get_name();
}
};
return pub;
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment