{"action":"created","issue":{"url":"https://api.github.com/repos/leeoniya/domvm/issues/57","repository_url":"https://api.github.com/repos/leeoniya/domvm","labels_url":"https://api.github.com/repos/leeoniya/domvm/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/leeoniya/domvm/issues/57/comments","events_url":"https://api.github.com/repos/leeoniya/domvm/issues/57/events","html_url":"https://github.com/leeoniya/domvm/issues/57","id":149943569,"number":57,"title":"Setting config results in exception","user":{"login":"lawrence-dol","id":8662551,"avatar_url":"https://avatars.githubusercontent.com/u/8662551?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-dol","html_url":"https://github.com/lawrence-dol","followers_url":"https://api.github.com/users/lawrence-dol/followers","following_url":"https://api.github.com/users/lawrence-dol/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-dol/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-dol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-dol/subscriptions","organizations_url":"https://api.github.com/users/lawrence-dol/orgs","repos_url":"https://api.github.com/users/lawrence-dol/repos","events_url":"https://api.github.com/users/lawrence-dol/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-dol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T02:44:28Z","updated_at":"2016-04-21T03:44:15Z","closed_at":null,"body":"Another problem which does not show in a simple fiddle.\r\n\r\nMy application does not use routes. When I add `domvm.view.config({ useRaf: false });` right before mounting the root view, I get an \"impossible\" exception on first redraw:\r\n\r\n````\r\n19:42:23.807 TypeError: vm.render is null\r\nredraw() AppScript;01:105\r\nreceiveData() AppScript;01:595\r\ninit() AppScript;01:592\r\nMdlHostReplay() AppScript;01:605\r\nview() AppScript;01:544\r\ncreateView() AppScript;01:92\r\ninit() AppScript;01:542\r\nAppMain() AppScript;01:549\r\n<anonymous> App:24\r\n1 AppScript;01:105:86\r\n````\r\n\r\nInspecting the vm object, it does indeed not contain a render function. All I need to do to fix things is remove that line. (I only added it because your fiddle had it and I was checking to see if it impacted #56.)\r\n\r\nAlso, it doesn't appear to matter what you supply for config; even an empty object causes the exception."},"comment":{"url":"https://api.github.com/repos/leeoniya/domvm/issues/comments/212724380","html_url":"https://github.com/leeoniya/domvm/issues/57#issuecomment-212724380","issue_url":"https://api.github.com/repos/leeoniya/domvm/issues/57","id":212724380,"user":{"login":"leeoniya","id":43234,"avatar_url":"https://avatars.githubusercontent.com/u/43234?v=3","gravatar_id":"","url":"https://api.github.com/users/leeoniya","html_url":"https://github.com/leeoniya","followers_url":"https://api.github.com/users/leeoniya/followers","following_url":"https://api.github.com/users/leeoniya/following{/other_user}","gists_url":"https://api.github.com/users/leeoniya/gists{/gist_id}","starred_url":"https://api.github.com/users/leeoniya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeoniya/subscriptions","organizations_url":"https://api.github.com/users/leeoniya/orgs","repos_url":"https://api.github.com/users/leeoniya/repos","events_url":"https://api.github.com/users/leeoniya/events{/privacy}","received_events_url":"https://api.github.com/users/leeoniya/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T03:44:15Z","updated_at":"2016-04-21T03:44:15Z","body":"yes, very strange. the only way `vm.render` can stay null is if your view doesnt return a `render()` [1]. `domvm.view.config()` has no impact on this.\r\n\r\n[1] https://github.com/leeoniya/domvm/blob/1.x-dev/src/view.js#L141"}}