{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/120","labels_url":"https://api.github.com/repos/aurelia/templating-resources/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating-resources/issues/120/comments","events_url":"https://api.github.com/repos/aurelia/templating-resources/issues/120/events","html_url":"https://github.com/aurelia/templating-resources/issues/120","id":111700794,"number":120,"title":"repeat.for bound to a map within an if.bind throws exception when re-binding","user":{"login":"DarienFord","id":11743755,"avatar_url":"https://avatars.githubusercontent.com/u/11743755?v=3","gravatar_id":"","url":"https://api.github.com/users/DarienFord","html_url":"https://github.com/DarienFord","followers_url":"https://api.github.com/users/DarienFord/followers","following_url":"https://api.github.com/users/DarienFord/following{/other_user}","gists_url":"https://api.github.com/users/DarienFord/gists{/gist_id}","starred_url":"https://api.github.com/users/DarienFord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarienFord/subscriptions","organizations_url":"https://api.github.com/users/DarienFord/orgs","repos_url":"https://api.github.com/users/DarienFord/repos","events_url":"https://api.github.com/users/DarienFord/events{/privacy}","received_events_url":"https://api.github.com/users/DarienFord/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/templating-resources/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"martingust","id":5166897,"avatar_url":"https://avatars.githubusercontent.com/u/5166897?v=3","gravatar_id":"","url":"https://api.github.com/users/martingust","html_url":"https://github.com/martingust","followers_url":"https://api.github.com/users/martingust/followers","following_url":"https://api.github.com/users/martingust/following{/other_user}","gists_url":"https://api.github.com/users/martingust/gists{/gist_id}","starred_url":"https://api.github.com/users/martingust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingust/subscriptions","organizations_url":"https://api.github.com/users/martingust/orgs","repos_url":"https://api.github.com/users/martingust/repos","events_url":"https://api.github.com/users/martingust/events{/privacy}","received_events_url":"https://api.github.com/users/martingust/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-15T20:28:26Z","updated_at":"2015-10-31T20:37:48Z","closed_at":"2015-10-31T20:37:48Z","body":"The ```repeat.for``` binds correctly the first time, but if you are re-binding, for example if you are selecting a different item from a list, the follow exception is thrown the second time the ```if.bind``` evaluates to true:\r\n```\r\nUncaught TypeError: Cannot set property '$index' of null\r\nupdateBindingContext @ repeat.js:268\r\nhandleMapChangeRecords @ repeat.js:392\r\nbind @ repeat.js:81\r\nbind @ aurelia-templating.js:2706\r\nbind @ aurelia-templating.js:802\r\nbind @ aurelia-templating.js:2710\r\nbind @ aurelia-templating.js:802\r\nvalueChanged @ if.js:55\r\nBindableProperty.createObserver.selfSubscriber @ aurelia-templating.js:2937\r\ncall @ aurelia-templating.js:2809\r\nflushMicroTaskQueue @ aurelia-task-queue.js:110\r\n(anonymous function) @ aurelia-task-queue.js:60\r\n```"},"comment":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/comments/152770517","html_url":"https://github.com/aurelia/templating-resources/issues/120#issuecomment-152770517","issue_url":"https://api.github.com/repos/aurelia/templating-resources/issues/120","id":152770517,"user":{"login":"martingust","id":5166897,"avatar_url":"https://avatars.githubusercontent.com/u/5166897?v=3","gravatar_id":"","url":"https://api.github.com/users/martingust","html_url":"https://github.com/martingust","followers_url":"https://api.github.com/users/martingust/followers","following_url":"https://api.github.com/users/martingust/following{/other_user}","gists_url":"https://api.github.com/users/martingust/gists{/gist_id}","starred_url":"https://api.github.com/users/martingust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingust/subscriptions","organizations_url":"https://api.github.com/users/martingust/orgs","repos_url":"https://api.github.com/users/martingust/repos","events_url":"https://api.github.com/users/martingust/events{/privacy}","received_events_url":"https://api.github.com/users/martingust/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T20:37:48Z","updated_at":"2015-10-31T20:37:48Z","body":"Fixed in https://github.com/aurelia/templating-resources/commit/1d96e6eea42760fa78580fce4f6b26fa57ed8ba3"}}