var O = {
    elements: {
        main: function() { return jQuery("#main"); },
        footer: function() { return jQuery("#footer"); }
    },
    main: function(html) {
        return (this.elements.main());
    },
    style: {
        setMaincolor: function() {
            // TypeError: Cannot call method 'main' of undefined
            return (this.elements.main());
        }
    }    
};
それで; 私は O.style オブジェクトの親オブジェクトです ????
O.style.setMaincolor() // TypeError: Cannot call method 'main' of undefined
O.main() // [<div id="main"></div>]
setMaincolor メソッドはこれを O Object に返します