{"action":"opened","issue":{"url":"https://api.github.com/repos/bigwheel-framework/bigwheel/issues/20","labels_url":"https://api.github.com/repos/bigwheel-framework/bigwheel/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/bigwheel-framework/bigwheel/issues/20/comments","events_url":"https://api.github.com/repos/bigwheel-framework/bigwheel/issues/20/events","html_url":"https://github.com/bigwheel-framework/bigwheel/issues/20","id":103673167,"number":20,"title":"initSection not working","user":{"login":"baptistebriel","id":2464663,"avatar_url":"https://avatars.githubusercontent.com/u/2464663?v=3","gravatar_id":"","url":"https://api.github.com/users/baptistebriel","html_url":"https://github.com/baptistebriel","followers_url":"https://api.github.com/users/baptistebriel/followers","following_url":"https://api.github.com/users/baptistebriel/following{/other_user}","gists_url":"https://api.github.com/users/baptistebriel/gists{/gist_id}","starred_url":"https://api.github.com/users/baptistebriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baptistebriel/subscriptions","organizations_url":"https://api.github.com/users/baptistebriel/orgs","repos_url":"https://api.github.com/users/baptistebriel/repos","events_url":"https://api.github.com/users/baptistebriel/events{/privacy}","received_events_url":"https://api.github.com/users/baptistebriel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-28T08:44:15Z","updated_at":"2015-08-28T08:44:15Z","closed_at":null,"body":"Hello (again),\r\nI can't figure out how to make the `initSection` work..\r\n\r\n```javascript\r\nvar bigwheel = require('bigwheel');\r\n\r\nmodule.exports = bigwheel( function(done) {\r\n\r\n  done( {\r\n    initSection: require('../sections/Preloader'),\r\n    routes: require('./routes')\r\n  });\r\n});\r\n```\r\nfrom - https://github.com/bigwheel-framework/documentation/blob/master/routes-special.md#initsection\r\n\r\nI think it doesn't pass the `bigwheel.show` function;\r\n```javascript\r\n// check if section is an array or function or object\r\nif(Array.isArray(section)) {\r\n\r\n\tvar sections = [];\r\n\r\n\tfor(var i = 0, len = section.length; i < len; i++) {\r\n\r\n\t\tif(typeof section[ i ] == 'object') {\r\n\r\n\t\t\tsections[ i ] = section[ i ];\r\n\t\t} else if(typeof section[ i ] == 'function') {\r\n\r\n\t\t\tsections[ i ] = new section[ i ]();\r\n\t\t}\r\n\t}\r\n\r\n\tthis.doShow(viewmediator.apply(undefined, sections), req);\r\n} else if(typeof section == 'object') {\r\n\t\r\n\tthis.doShow(section, req);\r\n} else if(typeof section == 'function') {\r\n\r\n\tthis.doShow(new section(), req);\r\n}\r\n\r\nelse {\r\n\tconsole.log(section); // undefined\r\n}\r\n```\r\nfrom - https://github.com/bigwheel-framework/bigwheel/blob/master/index.js#L218\r\n\r\nDo you have any ideas? Thanks a lot."}}