Skip to content

Instantly share code, notes, and snippets.

@lifeinafolder
Created January 20, 2011 19:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lifeinafolder/788427 to your computer and use it in GitHub Desktop.
var myFunkyLibrary = function(){
var _prop1 = ''; // this property turned private. woozahh!
//function meant for internal usage. This is truly private now.
var _fn2 = function(){};
this.prop2 = 'some value here'; // a public property.
this.fn = function(){}; //public function of the library
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment