I come from "old school" Javascript functions which I don't even need to demonstrate.
($, reportGroupDataManager, data)
?Where can I learn how to code this style , where and how?
(function(jQ, dM, data) {
var self = this;
//var $container = jQ('#menu-tree'),
// initializePage = function(resources) {
// console.log('in init');
// //var resources = "blah";
// };
var initializePage = function () {
console.log('in init');
};
dM.getResources()
.done(initializePage);
})($, reportGroupDataManager, data);
Hope it helps.