{"action":"created","issue":{"url":"https://api.github.com/repos/canjs/canjs/issues/2367","repository_url":"https://api.github.com/repos/canjs/canjs","labels_url":"https://api.github.com/repos/canjs/canjs/issues/2367/labels{/name}","comments_url":"https://api.github.com/repos/canjs/canjs/issues/2367/comments","events_url":"https://api.github.com/repos/canjs/canjs/issues/2367/events","html_url":"https://github.com/canjs/canjs/issues/2367","id":147285518,"number":2367,"title":"Define getter/setters don't work with default property","user":{"login":"nlundquist","id":2623867,"avatar_url":"https://avatars.githubusercontent.com/u/2623867?v=3","gravatar_id":"","url":"https://api.github.com/users/nlundquist","html_url":"https://github.com/nlundquist","followers_url":"https://api.github.com/users/nlundquist/followers","following_url":"https://api.github.com/users/nlundquist/following{/other_user}","gists_url":"https://api.github.com/users/nlundquist/gists{/gist_id}","starred_url":"https://api.github.com/users/nlundquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlundquist/subscriptions","organizations_url":"https://api.github.com/users/nlundquist/orgs","repos_url":"https://api.github.com/users/nlundquist/repos","events_url":"https://api.github.com/users/nlundquist/events{/privacy}","received_events_url":"https://api.github.com/users/nlundquist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-11T00:54:12Z","updated_at":"2016-09-02T18:24:21Z","closed_at":null,"body":"Trying to use the define plugin getters & setters on the 'wildcard' / 'default' property results in unexpected behaviour. \r\n\r\neg.\r\n```js\r\ndefine: {\r\n    '*': {\r\n        set: function(value) {\r\n            return JSON.stringify(value);\r\n        },\r\n        get: function (value) {\r\n            return JSON.parse(value);\r\n        }\r\n    }\r\n}\r\n```\r\nWhen any setter is defined an error is thrown, when a getter is defined it simply isn't called. \r\n\r\nThe repo below shows how the getter isn't applied. To reproduce the setter issue, uncomment the setter.\r\nhttps://github.com/nlundquist/canjs-default-setter \r\n\r\nIf this is an expected incompatibility we might want to add a note in the docs."},"comment":{"url":"https://api.github.com/repos/canjs/canjs/issues/comments/244451934","html_url":"https://github.com/canjs/canjs/issues/2367#issuecomment-244451934","issue_url":"https://api.github.com/repos/canjs/canjs/issues/2367","id":244451934,"user":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T18:24:21Z","updated_at":"2016-09-02T18:24:21Z","body":"Closing for https://github.com/canjs/can-map-define/issues/4"}}
{"actor":{"display_login":"justinbmeyer"}}