{"action":"closed","issue":{"url":"https://api.github.com/repos/jdanyow/aurelia-computed/issues/6","labels_url":"https://api.github.com/repos/jdanyow/aurelia-computed/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jdanyow/aurelia-computed/issues/6/comments","events_url":"https://api.github.com/repos/jdanyow/aurelia-computed/issues/6/events","html_url":"https://github.com/jdanyow/aurelia-computed/issues/6","id":102596947,"number":6,"title":"truthy check before function call not working","user":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-23T07:51:10Z","updated_at":"2015-09-13T17:59:07Z","closed_at":"2015-09-13T17:59:07Z","body":"This code:\r\n\r\n```\r\nget isValidated() {\r\n    return this.user && this.user.isValidated();\r\n  }\r\n```\r\n\r\nwith this function in the user class:\r\n\r\n```\r\nisValidated() {\r\n    return true;\r\n  }\r\n```\r\n\r\nresults in this error:\r\n\r\n```\r\nERROR [app-router] TypeError: Cannot read property 'isValidated' of undefined\r\n    at ensureFunctionFromMap (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:2059:19)\r\n    at CallMember.evaluate (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:1369:14)\r\n    at CallMember.connect (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:1407:21)\r\n    at Binary.connect (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:1571:34)\r\n    at GetterObserver.subscribe (http://localhost:9000/jspm_packages/github/jdanyow/aurelia-computed@0.5.1/getter-observer.js:39:32)\r\n    at new CompositeObserver (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:877:46)\r\n    at Conditional.connect (http://localhost:9000/jspm_packages/github/aurelia/binding@0.8.6/aurelia-binding.js:1129:20)\r\n    at InterpolationBinding.connect (http://localhost:9000/jspm_packages/github/aurelia/templating-binding@0.14.0/aurelia-templating-binding.js:460:29)\r\n    at InterpolationBinding.bind (http://localhost:9000/jspm_packages/github/aurelia/templating-binding@0.14.0/aurelia-templating-binding.js:403:14)\r\n    at View.bind (http://localhost:9000/jspm_packages/github/aurelia/templating@0.14.1/aurelia-templating.js:725:21)\r\n```\r\n\r\nand the error is gone when you disable aurelia-computed (in main.js).\r\n\r\nTest repo is here: https://github.com/JeroenVinke/aurelia-computed-bug\r\n\r\nIs this something that can be fixed? My use-case involves breeze like this:\r\n\r\n```\r\nget isNew() {\r\n  return this.entity && this.entity.entityAspect.entityState.isAdded();\r\n}\r\n```"}}