{"action":"created","issue":{"url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/6","repository_url":"https://api.github.com/repos/gabrieldoty/simplify-scorm","labels_url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/6/comments","events_url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/6/events","html_url":"https://github.com/gabrieldoty/simplify-scorm/issues/6","id":302463285,"number":6,"title":"setting initial values","user":{"login":"ddamicotam","id":20913338,"avatar_url":"https://avatars3.githubusercontent.com/u/20913338?v=4","gravatar_id":"","url":"https://api.github.com/users/ddamicotam","html_url":"https://github.com/ddamicotam","followers_url":"https://api.github.com/users/ddamicotam/followers","following_url":"https://api.github.com/users/ddamicotam/following{/other_user}","gists_url":"https://api.github.com/users/ddamicotam/gists{/gist_id}","starred_url":"https://api.github.com/users/ddamicotam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddamicotam/subscriptions","organizations_url":"https://api.github.com/users/ddamicotam/orgs","repos_url":"https://api.github.com/users/ddamicotam/repos","events_url":"https://api.github.com/users/ddamicotam/events{/privacy}","received_events_url":"https://api.github.com/users/ddamicotam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-05T21:07:28Z","updated_at":"2018-03-05T22:06:43Z","closed_at":null,"author_association":"NONE","body":"Hi there!\r\n\r\nFirst of all thanks very much for this library, it's super super helpful.\r\n\r\nSecond, I was wondering if you could expand upon the explanation in the docs of how to set the initial values in API.cmi.\r\n\r\nRight now I'm pulling in the API code, then doing my sets on window.API.cmi, then allowing my content to init and call LMSInitialize. What I'm finding is the sets for read-only values flow through your setter implementation, which calls API.throwSCORMError, which results in the values not getting set, and in the content encountering the error code when it init's, and everything comes crashing down from there.\r\n\r\nThat's exactly what I would expect if I was a piece of content trying to do this, but acting as the \"LMS\" in this case it seems like something I'm supposed to be able to do? I feel like I must be missing something super-obvious here, so I apologize in advance if that's the case.\r\n\r\nThanks again!"},"comment":{"url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/comments/370584219","html_url":"https://github.com/gabrieldoty/simplify-scorm/issues/6#issuecomment-370584219","issue_url":"https://api.github.com/repos/gabrieldoty/simplify-scorm/issues/6","id":370584219,"user":{"login":"xob","id":4996802,"avatar_url":"https://avatars0.githubusercontent.com/u/4996802?v=4","gravatar_id":"","url":"https://api.github.com/users/xob","html_url":"https://github.com/xob","followers_url":"https://api.github.com/users/xob/followers","following_url":"https://api.github.com/users/xob/following{/other_user}","gists_url":"https://api.github.com/users/xob/gists{/gist_id}","starred_url":"https://api.github.com/users/xob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xob/subscriptions","organizations_url":"https://api.github.com/users/xob/orgs","repos_url":"https://api.github.com/users/xob/repos","events_url":"https://api.github.com/users/xob/events{/privacy}","received_events_url":"https://api.github.com/users/xob/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T22:06:43Z","updated_at":"2018-03-05T22:06:43Z","author_association":"NONE","body":"I also ran into this problem, and while I haven't spent any time on this yet, my initial idea to remedy this issue would be to add a method called \"fromJSON\" to complement the \"toJSON\" method, to load data from a JSON object.\r\n\r\nThe method could work similarly to \"toJSON\", where it would set a variable to true to temporarily allow writing to restricted attributes."}}
{"actor":{"display_login":"xob"}}