{"action":"created","issue":{"url":"https://api.github.com/repos/bobthecow/psysh/issues/149","labels_url":"https://api.github.com/repos/bobthecow/psysh/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/bobthecow/psysh/issues/149/comments","events_url":"https://api.github.com/repos/bobthecow/psysh/issues/149/events","html_url":"https://github.com/bobthecow/psysh/pull/149","id":57446147,"number":149,"title":"Fixes #106 by adjusting how loop closures are unbound.","user":{"login":"jeremeamia","id":107867,"avatar_url":"https://avatars.githubusercontent.com/u/107867?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremeamia","html_url":"https://github.com/jeremeamia","followers_url":"https://api.github.com/users/jeremeamia/followers","following_url":"https://api.github.com/users/jeremeamia/following{/other_user}","gists_url":"https://api.github.com/users/jeremeamia/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremeamia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremeamia/subscriptions","organizations_url":"https://api.github.com/users/jeremeamia/orgs","repos_url":"https://api.github.com/users/jeremeamia/repos","events_url":"https://api.github.com/users/jeremeamia/events{/privacy}","received_events_url":"https://api.github.com/users/jeremeamia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T11:05:59Z","updated_at":"2015-02-12T19:50:21Z","closed_at":"2015-02-12T19:44:10Z","pull_request":{"url":"https://api.github.com/repos/bobthecow/psysh/pulls/149","html_url":"https://github.com/bobthecow/psysh/pull/149","diff_url":"https://github.com/bobthecow/psysh/pull/149.diff","patch_url":"https://github.com/bobthecow/psysh/pull/149.patch"},"body":"This PR is a small change that fixes #106. While b3ec103 seems like a valid approach, this PR might be an easier way to do it.\r\n\r\nIf you do `->bindTo(null)`, then you forever make the closure \"static\".\r\n\r\nHowever, if you do `->bindTo(null, null)`, for some reason, you can rebind later without an issue.\r\n\r\nWhy? I'm not really sure, but that is just how it works. I [prepared this gist](https://gist.github.com/jeremeamia/63912686640adb402c6d) showing how different binding situations work out."},"comment":{"url":"https://api.github.com/repos/bobthecow/psysh/issues/comments/74139710","html_url":"https://github.com/bobthecow/psysh/pull/149#issuecomment-74139710","issue_url":"https://api.github.com/repos/bobthecow/psysh/issues/149","id":74139710,"user":{"login":"jeremeamia","id":107867,"avatar_url":"https://avatars.githubusercontent.com/u/107867?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremeamia","html_url":"https://github.com/jeremeamia","followers_url":"https://api.github.com/users/jeremeamia/followers","following_url":"https://api.github.com/users/jeremeamia/following{/other_user}","gists_url":"https://api.github.com/users/jeremeamia/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremeamia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremeamia/subscriptions","organizations_url":"https://api.github.com/users/jeremeamia/orgs","repos_url":"https://api.github.com/users/jeremeamia/repos","events_url":"https://api.github.com/users/jeremeamia/events{/privacy}","received_events_url":"https://api.github.com/users/jeremeamia/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:50:21Z","updated_at":"2015-02-12T19:50:21Z","body":":+1:"}}