Skip to content

Instantly share code, notes, and snippets.

@OiNutter
Created August 26, 2011 11:26
Show Gist options
  • Save OiNutter/1173224 to your computer and use it in GitHub Desktop.
Save OiNutter/1173224 to your computer and use it in GitHub Desktop.
OiNutter.co.uk - tipBox - JS Encapuslation
var toolTip = function(){
var _privateProp = 'foo',
_privateMethod = function(){
return 'bar';
},
publicMethod = function(){
return _privateProp + _privateMethod();
};
return {
publicMethod:publicMethod
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment