// function module pattern with GLOBAL variable
(function () {
var privateVariable; function privateFunction(x) {
// private variable }
GLOBAL.methodical = {
firstMethod: function (a, b) {
// privateVariable }, secondMethod: function (c) {
// privateFunction }
};
} ());
No comments:
Post a Comment