Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myAwesomeLibrary = {
- _prop1 : '', //private property. should not be accessed externally
- prop2 : '' //public property.
- };
- //public function of the library
- myAwesomeLibrary.fn = function(){};
- //function meant for internal usage. Should not be called from outside
- myAwesomeLibrary._fn2 = function(){};
Add Comment
Please, Sign In to add comment