{"action":"closed","issue":{"url":"https://api.github.com/repos/canjs/canjs/issues/2444","repository_url":"https://api.github.com/repos/canjs/canjs","labels_url":"https://api.github.com/repos/canjs/canjs/issues/2444/labels{/name}","comments_url":"https://api.github.com/repos/canjs/canjs/issues/2444/comments","events_url":"https://api.github.com/repos/canjs/canjs/issues/2444/events","html_url":"https://github.com/canjs/canjs/issues/2444","id":168796192,"number":2444,"title":"can-autorender does not attach viewModel to the element.","user":{"login":"ilyavf","id":1895948,"avatar_url":"https://avatars.githubusercontent.com/u/1895948?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavf","html_url":"https://github.com/ilyavf","followers_url":"https://api.github.com/users/ilyavf/followers","following_url":"https://api.github.com/users/ilyavf/following{/other_user}","gists_url":"https://api.github.com/users/ilyavf/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavf/subscriptions","organizations_url":"https://api.github.com/users/ilyavf/orgs","repos_url":"https://api.github.com/users/ilyavf/repos","events_url":"https://api.github.com/users/ilyavf/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/canjs/canjs/labels/review","name":"review","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"ilyavf","id":1895948,"avatar_url":"https://avatars.githubusercontent.com/u/1895948?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavf","html_url":"https://github.com/ilyavf","followers_url":"https://api.github.com/users/ilyavf/followers","following_url":"https://api.github.com/users/ilyavf/following{/other_user}","gists_url":"https://api.github.com/users/ilyavf/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavf/subscriptions","organizations_url":"https://api.github.com/users/ilyavf/orgs","repos_url":"https://api.github.com/users/ilyavf/repos","events_url":"https://api.github.com/users/ilyavf/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavf/received_events","type":"User","site_admin":false},"assignees":[{"login":"ilyavf","id":1895948,"avatar_url":"https://avatars.githubusercontent.com/u/1895948?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavf","html_url":"https://github.com/ilyavf","followers_url":"https://api.github.com/users/ilyavf/followers","following_url":"https://api.github.com/users/ilyavf/following{/other_user}","gists_url":"https://api.github.com/users/ilyavf/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavf/subscriptions","organizations_url":"https://api.github.com/users/ilyavf/orgs","repos_url":"https://api.github.com/users/ilyavf/repos","events_url":"https://api.github.com/users/ilyavf/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavf/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-02T04:19:56Z","updated_at":"2016-09-02T20:39:01Z","closed_at":"2016-09-02T20:39:01Z","body":"JSBin: [here](http://jsbin.com/repiko/edit?html,js,console,output)\r\n\r\nProblem is [here](https://github.com/canjs/canjs/blob/master/view/autorender/autorender.js#L45): \r\n```\r\nvar scope = (can.data(el, \"scope\") || can.data(el, \"viewModel\")) ?\r\n\t\t\tcan.viewModel(el) : new AppState();\r\n```\r\n`can.viewModel(el)` creates a new VM and attaches it to the el. But in this case it does not get called thus VM=`new AppState()` is not attached to the el."}}
{"actor":{"display_login":"justinbmeyer"}}