{"action":"created","issue":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/1825","labels_url":"https://api.github.com/repos/ractivejs/ractive/issues/1825/labels{/name}","comments_url":"https://api.github.com/repos/ractivejs/ractive/issues/1825/comments","events_url":"https://api.github.com/repos/ractivejs/ractive/issues/1825/events","html_url":"https://github.com/ractivejs/ractive/issues/1825","id":61704938,"number":1825,"title":"Ractive dies on wrong data (TypeError)","user":{"login":"anton-ryzhov","id":556933,"avatar_url":"https://avatars.githubusercontent.com/u/556933?v=3","gravatar_id":"","url":"https://api.github.com/users/anton-ryzhov","html_url":"https://github.com/anton-ryzhov","followers_url":"https://api.github.com/users/anton-ryzhov/followers","following_url":"https://api.github.com/users/anton-ryzhov/following{/other_user}","gists_url":"https://api.github.com/users/anton-ryzhov/gists{/gist_id}","starred_url":"https://api.github.com/users/anton-ryzhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anton-ryzhov/subscriptions","organizations_url":"https://api.github.com/users/anton-ryzhov/orgs","repos_url":"https://api.github.com/users/anton-ryzhov/repos","events_url":"https://api.github.com/users/anton-ryzhov/events{/privacy}","received_events_url":"https://api.github.com/users/anton-ryzhov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-14T22:12:01Z","updated_at":"2015-03-15T16:52:06Z","closed_at":null,"body":"In lots of cases Ractive skips wrong data and continues to work. But it entirely dies if meet empty object as argument.\r\n\r\nhttp://jsfiddle.net/4s76b4uw/\r\n```js\r\nnew Ractive({\r\n    el: 'body',\r\n    \r\n    template: '<hr class=\"{{ emptyObject }}\" />',\r\n    \r\n    data: {\r\n        emptyObject: Object.create(null),\r\n    },\r\n});\r\n// TypeError: Cannot convert object to primitive value\r\n```"},"comment":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/comments/81153063","html_url":"https://github.com/ractivejs/ractive/issues/1825#issuecomment-81153063","issue_url":"https://api.github.com/repos/ractivejs/ractive/issues/1825","id":81153063,"user":{"login":"martypdx","id":478864,"avatar_url":"https://avatars.githubusercontent.com/u/478864?v=3","gravatar_id":"","url":"https://api.github.com/users/martypdx","html_url":"https://github.com/martypdx","followers_url":"https://api.github.com/users/martypdx/followers","following_url":"https://api.github.com/users/martypdx/following{/other_user}","gists_url":"https://api.github.com/users/martypdx/gists{/gist_id}","starred_url":"https://api.github.com/users/martypdx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martypdx/subscriptions","organizations_url":"https://api.github.com/users/martypdx/orgs","repos_url":"https://api.github.com/users/martypdx/repos","events_url":"https://api.github.com/users/martypdx/events{/privacy}","received_events_url":"https://api.github.com/users/martypdx/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T16:52:06Z","updated_at":"2015-03-15T16:52:06Z","body":"@anton-ryzhov have PR for this. I think it covers the needed areas, but will leave open for a bit in case you find anywhere else."}}