{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftBond/Bond/issues/123","labels_url":"https://api.github.com/repos/SwiftBond/Bond/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/SwiftBond/Bond/issues/123/comments","events_url":"https://api.github.com/repos/SwiftBond/Bond/issues/123/events","html_url":"https://github.com/SwiftBond/Bond/issues/123","id":99807348,"number":123,"title":"Shouldn't Bond allow only a single Dynamic to be binded to it?","user":{"login":"TadeasKriz","id":284197,"avatar_url":"https://avatars.githubusercontent.com/u/284197?v=3","gravatar_id":"","url":"https://api.github.com/users/TadeasKriz","html_url":"https://github.com/TadeasKriz","followers_url":"https://api.github.com/users/TadeasKriz/followers","following_url":"https://api.github.com/users/TadeasKriz/following{/other_user}","gists_url":"https://api.github.com/users/TadeasKriz/gists{/gist_id}","starred_url":"https://api.github.com/users/TadeasKriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TadeasKriz/subscriptions","organizations_url":"https://api.github.com/users/TadeasKriz/orgs","repos_url":"https://api.github.com/users/TadeasKriz/repos","events_url":"https://api.github.com/users/TadeasKriz/events{/privacy}","received_events_url":"https://api.github.com/users/TadeasKriz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-08T15:05:23Z","updated_at":"2015-08-10T08:46:10Z","closed_at":null,"body":"I was going through the code and as far as I can see, when I do this:\r\n```\r\nlet bond = Bond<String>() { println($0) }\r\nlet dynamic1 = Dynamic<String>(\"hello\")\r\nlet dynamic2 = Dynamic<String>(\"world\")\r\ndynamic1 ->> bond\r\ndynamic2 ->> bond\r\ndynamic1.value = \"stranger\"\r\n```\r\n\r\nI get output:\r\n```\r\nhello\r\nworld\r\nstranger\r\n```\r\nWhich is rather strange, because I would expect that only the last dynamic would be bound to the Bond, simply because there is the function `any([Dynamic<T>]) -> Dynamic<T>` which seems to be doing exactly that. If this is not intended behavior (which I would understand), then there is a bug in the example for TableView and CollectionView DataSource which does this:\r\n```\r\nrepositories.map { [unowned self] (repository: Repository) -> RepositoryTableViewCell in\r\n    let cell = self.tableView.dequeueReusableCellWithIdentifier(\"cell\") as RepositoryTableViewCell\r\n    repository.name ->> cell.nameLabel\r\n    repository.photo ->> cell.avatarImageView\r\n    return cell\r\n  } ->> tableViewDataSourceBond\r\n```\r\n\r\nAnd from what I can tell, it will be rebinding the `repository.name` and `repository.photo` to the cell's fields multiple times and also, when I will scroll down and then change the value of the first `Repository` name `Dynamic`, it will get changed on one of the drawn cells, because iOS recycle them whenever possible. A workaround for that would be to call `cell.nameLabel.designatedBond.unbindAll()` and `cell.avatarImageView.designatedBond.unbindAll()` before binding it again.\r\n\r\nSo what is the intended behavior? Is it a bug in the code or in the readme? Thanks."},"comment":{"url":"https://api.github.com/repos/SwiftBond/Bond/issues/comments/129368126","html_url":"https://github.com/SwiftBond/Bond/issues/123#issuecomment-129368126","issue_url":"https://api.github.com/repos/SwiftBond/Bond/issues/123","id":129368126,"user":{"login":"TadeasKriz","id":284197,"avatar_url":"https://avatars.githubusercontent.com/u/284197?v=3","gravatar_id":"","url":"https://api.github.com/users/TadeasKriz","html_url":"https://github.com/TadeasKriz","followers_url":"https://api.github.com/users/TadeasKriz/followers","following_url":"https://api.github.com/users/TadeasKriz/following{/other_user}","gists_url":"https://api.github.com/users/TadeasKriz/gists{/gist_id}","starred_url":"https://api.github.com/users/TadeasKriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TadeasKriz/subscriptions","organizations_url":"https://api.github.com/users/TadeasKriz/orgs","repos_url":"https://api.github.com/users/TadeasKriz/repos","events_url":"https://api.github.com/users/TadeasKriz/events{/privacy}","received_events_url":"https://api.github.com/users/TadeasKriz/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T08:46:10Z","updated_at":"2015-08-10T08:46:10Z","body":"@srdanrasic What is the difference between:\r\n```\r\ndynamic1 ->> dynamicX\r\ndynamic2 ->> dynamicX\r\n```\r\nand\r\n```\r\nany(dynamic1, dynamic2) ->> dynamicX\r\n```\r\nBecause I think that even the dynamic should not be allowed to have more than one other dynamic binded to it. What is the use case for it anyway?"}}