{"action":"closed","issue":{"url":"https://api.github.com/repos/YR/simple-traits/issues/1","labels_url":"https://api.github.com/repos/YR/simple-traits/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/YR/simple-traits/issues/1/comments","events_url":"https://api.github.com/repos/YR/simple-traits/issues/1/events","html_url":"https://github.com/YR/simple-traits/issues/1","id":116959860,"number":1,"title":"TypeError: Cannot read property 'value' of undefined index.js:238","user":{"login":"kevzettler","id":126209,"avatar_url":"https://avatars.githubusercontent.com/u/126209?v=3","gravatar_id":"","url":"https://api.github.com/users/kevzettler","html_url":"https://github.com/kevzettler","followers_url":"https://api.github.com/users/kevzettler/followers","following_url":"https://api.github.com/users/kevzettler/following{/other_user}","gists_url":"https://api.github.com/users/kevzettler/gists{/gist_id}","starred_url":"https://api.github.com/users/kevzettler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevzettler/subscriptions","organizations_url":"https://api.github.com/users/kevzettler/orgs","repos_url":"https://api.github.com/users/kevzettler/repos","events_url":"https://api.github.com/users/kevzettler/events{/privacy}","received_events_url":"https://api.github.com/users/kevzettler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-14T23:28:59Z","updated_at":"2015-11-14T23:34:12Z","closed_at":"2015-11-14T23:34:12Z","body":"Hi I was trying out this library and following one of the simple examples from the read me and its throwing an error. \r\n\r\n\r\nHeres my script.\r\n```\r\nvar Trait = require('trait');\r\n\r\nvar t = Trait({\r\n  foo: Trait.required,\r\n  bar: function bar () {\r\n    return this.foo;\r\n  },\r\n  baz: 'baz'\r\n});\r\n```\r\n\r\nAnd heres the error\r\n```\r\n/Users/kevzettler/VoxLords/node_modules/trait/index.js:238\r\n        attr._origin = attr.value;\r\n                           ^\r\nTypeError: Cannot read property 'value' of undefined\r\n    at Object.Attributes.add (/Users/kevzettler/VoxLords/node_modules/trait/index.js:238:28)\r\n    at Object.Attributes (/Users/kevzettler/VoxLords/node_modules/trait/index.js:27:14)\r\n    at trait (/Users/kevzettler/VoxLords/node_modules/trait/index.js:10:12)\r\n    at Object.<anonymous> (/Users/kevzettler/VoxLords/traittest.js:3:9)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n```"}}