{"action":"closed","issue":{"url":"https://api.github.com/repos/leeoniya/domvm/issues/39","repository_url":"https://api.github.com/repos/leeoniya/domvm","labels_url":"https://api.github.com/repos/leeoniya/domvm/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/leeoniya/domvm/issues/39/comments","events_url":"https://api.github.com/repos/leeoniya/domvm/issues/39/events","html_url":"https://github.com/leeoniya/domvm/issues/39","id":143110410,"number":39,"title":"vm.refs[] => vm.refs() to allow objects as _ref?","user":{"login":"leeoniya","id":43234,"avatar_url":"https://avatars.githubusercontent.com/u/43234?v=3","gravatar_id":"","url":"https://api.github.com/users/leeoniya","html_url":"https://github.com/leeoniya","followers_url":"https://api.github.com/users/leeoniya/followers","following_url":"https://api.github.com/users/leeoniya/following{/other_user}","gists_url":"https://api.github.com/users/leeoniya/gists{/gist_id}","starred_url":"https://api.github.com/users/leeoniya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeoniya/subscriptions","organizations_url":"https://api.github.com/users/leeoniya/orgs","repos_url":"https://api.github.com/users/leeoniya/repos","events_url":"https://api.github.com/users/leeoniya/events{/privacy}","received_events_url":"https://api.github.com/users/leeoniya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-24T00:05:13Z","updated_at":"2016-03-25T07:56:29Z","closed_at":"2016-03-25T07:56:29Z","body":"~~i've decided to change~~ `vm.refs` from an array to a getter function. app code updates should be trivial (unless you were iterating vm.refs): `vm.refs[key]` will become `vm.refs(key)`.\r\n\r\nthis is necessary for future-proofing the lib and allowing the internal `refs` impl to be non-uniform. the change will pave the way for _ref as well as _key on nodes to be objects OR values, transparently backed by Map, Weakmap or Hash.\r\n\r\ninvoking vm.refs with multiple args should bring back an array of vnodes while invoking it with 0 args should bring back an object containing both the Map and the Hash where object and value refs are held respectively.\r\n\r\nexpect the change to drop in the next few days."}}