{"action":"closed","issue":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/108","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/108/comments","events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/108/events","html_url":"https://github.com/Yomguithereal/baobab/issues/108","id":59768513,"number":108,"title":"Closure in a cursor path function does not work","user":{"login":"aileo","id":7926529,"avatar_url":"https://avatars.githubusercontent.com/u/7926529?v=3","gravatar_id":"","url":"https://api.github.com/users/aileo","html_url":"https://github.com/aileo","followers_url":"https://api.github.com/users/aileo/followers","following_url":"https://api.github.com/users/aileo/following{/other_user}","gists_url":"https://api.github.com/users/aileo/gists{/gist_id}","starred_url":"https://api.github.com/users/aileo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aileo/subscriptions","organizations_url":"https://api.github.com/users/aileo/orgs","repos_url":"https://api.github.com/users/aileo/repos","events_url":"https://api.github.com/users/aileo/events{/privacy}","received_events_url":"https://api.github.com/users/aileo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-04T09:03:27Z","updated_at":"2015-03-04T13:33:08Z","closed_at":"2015-03-04T13:33:08Z","body":"I think it is related to this issue : #65 \r\n\r\nI wrote an example :\r\n```js\r\nvar Baobab = require('baobab'),\r\n    tree = new Baobab({\r\n      items: [{id: 'one', value: 'Hey'}, {id: 'two', value: 'Ho'}]\r\n    });\r\n\r\nfunction getValueFromId(id) {\r\n  var value = tree.select('items', function(item) {\r\n    return item.id === id;\r\n  }, 'value');\r\n\r\n  return value.get();\r\n}\r\n\r\nconsole.log(getValueFromId('one'));\r\n>>> Hey\r\n// everything is OK\r\n\r\nconsole.log(getValueFromId('two'));\r\n>>> Hey\r\n// very disappointing\r\n```\r\n\r\nMaybe the `value` cursor should be deleted. Did I miss something ?"}}