{"action":"opened","issue":{"url":"https://api.github.com/repos/lazybensch/ember-cli-copyable/issues/19","repository_url":"https://api.github.com/repos/lazybensch/ember-cli-copyable","labels_url":"https://api.github.com/repos/lazybensch/ember-cli-copyable/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/lazybensch/ember-cli-copyable/issues/19/comments","events_url":"https://api.github.com/repos/lazybensch/ember-cli-copyable/issues/19/events","html_url":"https://github.com/lazybensch/ember-cli-copyable/issues/19","id":143495554,"number":19,"title":"Deep copy browser stuck","user":{"login":"spuyet","id":5107181,"avatar_url":"https://avatars.githubusercontent.com/u/5107181?v=3","gravatar_id":"","url":"https://api.github.com/users/spuyet","html_url":"https://github.com/spuyet","followers_url":"https://api.github.com/users/spuyet/followers","following_url":"https://api.github.com/users/spuyet/following{/other_user}","gists_url":"https://api.github.com/users/spuyet/gists{/gist_id}","starred_url":"https://api.github.com/users/spuyet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spuyet/subscriptions","organizations_url":"https://api.github.com/users/spuyet/orgs","repos_url":"https://api.github.com/users/spuyet/repos","events_url":"https://api.github.com/users/spuyet/events{/privacy}","received_events_url":"https://api.github.com/users/spuyet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T13:10:29Z","updated_at":"2016-03-25T13:10:29Z","closed_at":null,"body":"Hi,\r\n\r\nMy browser becomes stuck with 100% CPU usage on object copy:\r\n\r\nThis is my action:\r\n\r\n```javascript\r\n actions: {\r\n    selectSurvey(id, component) {\r\n      let store = this.store;\r\n      let campaign = this.get('model');\r\n      campaign.get('survey').then(function(survey) {\r\n        if (survey)\r\n          survey.destroyRecord();\r\n        store.find('survey', id).then(function(survey) {\r\n          survey.copy().then(function(copy) {});\r\n        });\r\n      });\r\n    },\r\n }\r\n```\r\n\r\nThe survey model is copyable and has many questions (copyable too) with many answers (copyable again). Maybe an infinite loop in deep copy ?\r\n\r\nThe problem occurred only on survey with questions. Copy for a survey without questions works fine.\r\n\r\nEmber-cli: `2.3.0`\r\nEmber-cli-copyable: `0.9.6`\r\n\r\nAny idea ?\r\n"}}