Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created May 18, 2013 17:59
Show Gist options
  • Save bingeboy/5605289 to your computer and use it in GitHub Desktop.
Save bingeboy/5605289 to your computer and use it in GitHub Desktop.
Module with public functions... good start for modules.
Var Roll = {} || Roll;
Roll.api = (function(){
//private
var _private1 : function() {
return true;
}
var _private2 : function() {
return true;
}
//public
return {
intit : function(){
alert("hi");
},
events: "",
test1 : function() {
return true;
},
test2: function() {
return true;
},
test3: function() {
return true;
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment