{"action":"created","comment":{"url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/comments/39014195","id":39014195,"diff_hunk":"@@ -24,19 +24,20 @@ class ListViewController: UITableViewController {\n     \n     // create view model\n     listViewModel = ListViewModel(githubApi: \"https://api.github.com/repositories\")\n+    dataSource = ObservableArray([listViewModel.repositoryCellViewModels])\n     \n     // create a bond for table view data source\n-    tableViewDataSourceBond = UITableViewDataSourceBond(tableView: self.tableView)\n \n     // establish a bond between view model and table view\n-    listViewModel.repositoryCellViewModels.map { [unowned self] (viewModel: ListCellViewModel, index: Int) -> ListCellView in\n-      let cell = (self.tableView.dequeueReusableCellWithIdentifier(\"cell\", forIndexPath: NSIndexPath(forItem: index, inSection: 0)) as? ListCellView)!\n-      viewModel.name ->> cell.nameLabel\n-      viewModel.username ->> cell.ownerLabel\n-      viewModel.photo ->> cell.avatarImageView\n+    dataSource.bindTo(tableView) { (indexPath, dataSource, tableView) -> UITableViewCell in\n+      let cell = (self.tableView.dequeueReusableCellWithIdentifier(\"cell\", forIndexPath: indexPath) as? ListCellView)!\n+      let viewModel = dataSource[indexPath.section][indexPath.row]\n+      viewModel.name.bindTo(cell.nameLabel.bnd_text)\n+      viewModel.username.bindTo(cell.ownerLabel.bnd_text)\n+      viewModel.photo.bindTo(cell.avatarImageView.bnd_image)","path":"BondDemo/ListViewController.swift","position":29,"original_position":29,"commit_id":"676e222b2c7a049995c6eb027d49692e2d849c8e","original_commit_id":"676e222b2c7a049995c6eb027d49692e2d849c8e","user":{"login":"srdanrasic","id":1660804,"avatar_url":"https://avatars.githubusercontent.com/u/1660804?v=3","gravatar_id":"","url":"https://api.github.com/users/srdanrasic","html_url":"https://github.com/srdanrasic","followers_url":"https://api.github.com/users/srdanrasic/followers","following_url":"https://api.github.com/users/srdanrasic/following{/other_user}","gists_url":"https://api.github.com/users/srdanrasic/gists{/gist_id}","starred_url":"https://api.github.com/users/srdanrasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srdanrasic/subscriptions","organizations_url":"https://api.github.com/users/srdanrasic/orgs","repos_url":"https://api.github.com/users/srdanrasic/repos","events_url":"https://api.github.com/users/srdanrasic/events{/privacy}","received_events_url":"https://api.github.com/users/srdanrasic/received_events","type":"User","site_admin":false},"body":"These bindings should be disposed in cell's `prepareForResue` method. The best way is to create a dispose bag as a property on cell, add the disposables returned by the `bindTo` method to that bag and dispose the bag on `prepareForResue`.","created_at":"2015-09-09T07:36:42Z","updated_at":"2015-09-09T07:36:42Z","html_url":"https://github.com/SwiftBond/Bond-Demo-App/pull/5#discussion_r39014195","pull_request_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/comments/39014195"},"html":{"href":"https://github.com/SwiftBond/Bond-Demo-App/pull/5#discussion_r39014195"},"pull_request":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5","id":44514742,"html_url":"https://github.com/SwiftBond/Bond-Demo-App/pull/5","diff_url":"https://github.com/SwiftBond/Bond-Demo-App/pull/5.diff","patch_url":"https://github.com/SwiftBond/Bond-Demo-App/pull/5.patch","issue_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/5","number":5,"state":"open","locked":false,"title":"change to Bond v4","user":{"login":"yanamura3","id":875297,"avatar_url":"https://avatars.githubusercontent.com/u/875297?v=3","gravatar_id":"","url":"https://api.github.com/users/yanamura3","html_url":"https://github.com/yanamura3","followers_url":"https://api.github.com/users/yanamura3/followers","following_url":"https://api.github.com/users/yanamura3/following{/other_user}","gists_url":"https://api.github.com/users/yanamura3/gists{/gist_id}","starred_url":"https://api.github.com/users/yanamura3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanamura3/subscriptions","organizations_url":"https://api.github.com/users/yanamura3/orgs","repos_url":"https://api.github.com/users/yanamura3/repos","events_url":"https://api.github.com/users/yanamura3/events{/privacy}","received_events_url":"https://api.github.com/users/yanamura3/received_events","type":"User","site_admin":false},"body":"update demo to use v4","created_at":"2015-09-09T06:30:58Z","updated_at":"2015-09-09T07:36:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b088eb03e8dce3c8d1e661cdcb973839780634a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5/commits","review_comments_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5/comments","review_comment_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/5/comments","statuses_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/statuses/676e222b2c7a049995c6eb027d49692e2d849c8e","head":{"label":"yanamura3:feature/v4","ref":"feature/v4","sha":"676e222b2c7a049995c6eb027d49692e2d849c8e","user":{"login":"yanamura3","id":875297,"avatar_url":"https://avatars.githubusercontent.com/u/875297?v=3","gravatar_id":"","url":"https://api.github.com/users/yanamura3","html_url":"https://github.com/yanamura3","followers_url":"https://api.github.com/users/yanamura3/followers","following_url":"https://api.github.com/users/yanamura3/following{/other_user}","gists_url":"https://api.github.com/users/yanamura3/gists{/gist_id}","starred_url":"https://api.github.com/users/yanamura3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanamura3/subscriptions","organizations_url":"https://api.github.com/users/yanamura3/orgs","repos_url":"https://api.github.com/users/yanamura3/repos","events_url":"https://api.github.com/users/yanamura3/events{/privacy}","received_events_url":"https://api.github.com/users/yanamura3/received_events","type":"User","site_admin":false},"repo":{"id":42160023,"name":"Bond-Demo-App","full_name":"yanamura3/Bond-Demo-App","owner":{"login":"yanamura3","id":875297,"avatar_url":"https://avatars.githubusercontent.com/u/875297?v=3","gravatar_id":"","url":"https://api.github.com/users/yanamura3","html_url":"https://github.com/yanamura3","followers_url":"https://api.github.com/users/yanamura3/followers","following_url":"https://api.github.com/users/yanamura3/following{/other_user}","gists_url":"https://api.github.com/users/yanamura3/gists{/gist_id}","starred_url":"https://api.github.com/users/yanamura3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanamura3/subscriptions","organizations_url":"https://api.github.com/users/yanamura3/orgs","repos_url":"https://api.github.com/users/yanamura3/repos","events_url":"https://api.github.com/users/yanamura3/events{/privacy}","received_events_url":"https://api.github.com/users/yanamura3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yanamura3/Bond-Demo-App","description":"Bond Demo App","fork":true,"url":"https://api.github.com/repos/yanamura3/Bond-Demo-App","forks_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/forks","keys_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/teams","hooks_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/hooks","issue_events_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/issues/events{/number}","events_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/events","assignees_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/assignees{/user}","branches_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/branches{/branch}","tags_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/tags","blobs_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/statuses/{sha}","languages_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/languages","stargazers_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/stargazers","contributors_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/contributors","subscribers_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/subscribers","subscription_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/subscription","commits_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/contents/{+path}","compare_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/merges","archive_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/downloads","issues_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/issues{/number}","pulls_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/pulls{/number}","milestones_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/milestones{/number}","notifications_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/labels{/name}","releases_url":"https://api.github.com/repos/yanamura3/Bond-Demo-App/releases{/id}","created_at":"2015-09-09T06:20:38Z","updated_at":"2015-09-09T06:20:39Z","pushed_at":"2015-09-09T06:26:48Z","git_url":"git://github.com/yanamura3/Bond-Demo-App.git","ssh_url":"git@github.com:yanamura3/Bond-Demo-App.git","clone_url":"https://github.com/yanamura3/Bond-Demo-App.git","svn_url":"https://github.com/yanamura3/Bond-Demo-App","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SwiftBond:master","ref":"master","sha":"3d20d4139d6c0b9fcdad76ff4c9420632a193284","user":{"login":"SwiftBond","id":10763247,"avatar_url":"https://avatars.githubusercontent.com/u/10763247?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftBond","html_url":"https://github.com/SwiftBond","followers_url":"https://api.github.com/users/SwiftBond/followers","following_url":"https://api.github.com/users/SwiftBond/following{/other_user}","gists_url":"https://api.github.com/users/SwiftBond/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftBond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftBond/subscriptions","organizations_url":"https://api.github.com/users/SwiftBond/orgs","repos_url":"https://api.github.com/users/SwiftBond/repos","events_url":"https://api.github.com/users/SwiftBond/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftBond/received_events","type":"Organization","site_admin":false},"repo":{"id":30152286,"name":"Bond-Demo-App","full_name":"SwiftBond/Bond-Demo-App","owner":{"login":"SwiftBond","id":10763247,"avatar_url":"https://avatars.githubusercontent.com/u/10763247?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftBond","html_url":"https://github.com/SwiftBond","followers_url":"https://api.github.com/users/SwiftBond/followers","following_url":"https://api.github.com/users/SwiftBond/following{/other_user}","gists_url":"https://api.github.com/users/SwiftBond/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftBond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftBond/subscriptions","organizations_url":"https://api.github.com/users/SwiftBond/orgs","repos_url":"https://api.github.com/users/SwiftBond/repos","events_url":"https://api.github.com/users/SwiftBond/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftBond/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SwiftBond/Bond-Demo-App","description":"Bond Demo App","fork":false,"url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App","forks_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/forks","keys_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/teams","hooks_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/hooks","issue_events_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/events","assignees_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/tags","blobs_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/languages","stargazers_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/stargazers","contributors_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/contributors","subscribers_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/subscribers","subscription_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/subscription","commits_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/merges","archive_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/downloads","issues_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/labels{/name}","releases_url":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/releases{/id}","created_at":"2015-02-01T16:47:48Z","updated_at":"2015-09-07T23:55:08Z","pushed_at":"2015-09-09T06:30:59Z","git_url":"git://github.com/SwiftBond/Bond-Demo-App.git","ssh_url":"git@github.com:SwiftBond/Bond-Demo-App.git","clone_url":"https://github.com/SwiftBond/Bond-Demo-App.git","svn_url":"https://github.com/SwiftBond/Bond-Demo-App","homepage":null,"size":171,"stargazers_count":12,"watchers_count":12,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5"},"html":{"href":"https://github.com/SwiftBond/Bond-Demo-App/pull/5"},"issue":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/5"},"comments":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/SwiftBond/Bond-Demo-App/statuses/676e222b2c7a049995c6eb027d49692e2d849c8e"}}}}