js object and js function class

var yung = { variable : xxx, add: function () { } }

they are all accessible by other

yung.Class = function(someSetting) {

var privateVar
this.publicVar
function privateFunction
function publicFunction

//public function
$.extend(this, {
publicFunction: publicFunction
});

yung.obj = new yung.Class(someSettings);

}

scope:

(function(object1, jquery, window, settings) {

code….

})(object1, jquery, window, settings);

Posted in: web