Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var constructor = function (spec, my) {
- var that = {};
- var my = my || {};
- // This function is private.
- my.privateFunction = function() {
- return true;
- };
- // This function is public.
- that.publicFunction = function() {
- return true;
- };
- return that;
- };
Add Comment
Please, Sign In to add comment