myToolbox = (function () {
var o = {
css: function (el, prop) { /*return css-prop*/
},
ajax: function (options) { /*make ajax-request*/
}
};
var cache = {};
o.getCache = function () {
return cache
};
return o;
})();
myToolbox.ajax({
url: "foo",
async: true
}); //ajax-req.
myToolBox.css(document.body, "width"); // some width
myToolbox.getCache(); // {}
typeof myToolbox.cache // undefined.