{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/butterknife/issues/392","labels_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/392/comments","events_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/392/events","html_url":"https://github.com/JakeWharton/butterknife/pull/392","id":111164403,"number":392,"title":"Support for unbinder inheritance.","user":{"login":"serj-lotutovici","id":1552206,"avatar_url":"https://avatars.githubusercontent.com/u/1552206?v=3","gravatar_id":"","url":"https://api.github.com/users/serj-lotutovici","html_url":"https://github.com/serj-lotutovici","followers_url":"https://api.github.com/users/serj-lotutovici/followers","following_url":"https://api.github.com/users/serj-lotutovici/following{/other_user}","gists_url":"https://api.github.com/users/serj-lotutovici/gists{/gist_id}","starred_url":"https://api.github.com/users/serj-lotutovici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serj-lotutovici/subscriptions","organizations_url":"https://api.github.com/users/serj-lotutovici/orgs","repos_url":"https://api.github.com/users/serj-lotutovici/repos","events_url":"https://api.github.com/users/serj-lotutovici/events{/privacy}","received_events_url":"https://api.github.com/users/serj-lotutovici/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-13T11:54:23Z","updated_at":"2015-10-26T00:23:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JakeWharton/butterknife/pulls/392","html_url":"https://github.com/JakeWharton/butterknife/pull/392","diff_url":"https://github.com/JakeWharton/butterknife/pull/392.diff","patch_url":"https://github.com/JakeWharton/butterknife/pull/392.patch"},"body":"This address the issue rised in #390. Allows unbinders to inherit form parent `ViewBinder.Unbinder`'s.\r\n\r\nChanges:\r\n* By default only the top level Unbinder (no parent case) overrides the `ButterKnife#unbind()` method, making it final. The actual unbindings happen in `generated_source$$ViewBinder.Unbinder.Unbinder#unbind(T)`, this allows all child unbinders to override it not braking the expected behaviour. \r\n* For every \"potential\" parent unbinder we generate 2 protected helper methods in the `ViewBinder` class.\r\n* Each child `ViewBInder` overrides at at-least the `createUnbinder` method providing he's \"extended\" Unbinder. \r\n* If a child also binds an unbinder, `accessUnbinder` will be overriden, but will be called only from the next child in the hierarchy (if any).\r\n\r\n_I'm not sure if @JakeWharton will agree with this solution, but It was something defiantly fun to hack on...)_"},"comment":{"url":"https://api.github.com/repos/JakeWharton/butterknife/issues/comments/150991382","html_url":"https://github.com/JakeWharton/butterknife/pull/392#issuecomment-150991382","issue_url":"https://api.github.com/repos/JakeWharton/butterknife/issues/392","id":150991382,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T00:23:54Z","updated_at":"2015-10-26T00:23:54Z","body":"Me too\n\nOn Sun, Oct 25, 2015, 3:38 PM Martynas Jurkus <notifications@github.com>\nwrote:\n\n> Ping... We are really waiting for this one...\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/JakeWharton/butterknife/pull/392#issuecomment-150961659>\n> .\n>\n"}}