Created
May 18, 2013 17:59
-
-
Save bingeboy/5605289 to your computer and use it in GitHub Desktop.
Module with public functions... good start for modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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