{"action":"created","issue":{"url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/22","labels_url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/22/comments","events_url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/22/events","html_url":"https://github.com/riknos314/RunestoneJSComponents/issues/22","id":88476119,"number":22,"title":"Modify assess javascript to use prototyping rather than DOM lookups","user":{"login":"riknos314","id":8736936,"avatar_url":"https://avatars.githubusercontent.com/u/8736936?v=3","gravatar_id":"","url":"https://api.github.com/users/riknos314","html_url":"https://github.com/riknos314","followers_url":"https://api.github.com/users/riknos314/followers","following_url":"https://api.github.com/users/riknos314/following{/other_user}","gists_url":"https://api.github.com/users/riknos314/gists{/gist_id}","starred_url":"https://api.github.com/users/riknos314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riknos314/subscriptions","organizations_url":"https://api.github.com/users/riknos314/orgs","repos_url":"https://api.github.com/users/riknos314/repos","events_url":"https://api.github.com/users/riknos314/events{/privacy}","received_events_url":"https://api.github.com/users/riknos314/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-15T16:33:09Z","updated_at":"2015-06-19T19:56:52Z","closed_at":"2015-06-19T19:56:52Z","body":"We have prototypes of each assessment problem.  Any HTML element that is a child of a problem that needs to be updated later should be initialized to the prototype as an element of <code>this</code>, rather than a varaible.  Then when the element needs to be updated we can use <code>this.element.attribute = \"value\"</code> instead of using DOM lookups with <code>document.getElementById(problemID + \"_element\").attribute = \"value\"</code> or the jQuery equivilant.\r\n\r\nThis should make the code easier to read and better performing."},"comment":{"url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/comments/113626479","html_url":"https://github.com/riknos314/RunestoneJSComponents/issues/22#issuecomment-113626479","issue_url":"https://api.github.com/repos/riknos314/RunestoneJSComponents/issues/22","id":113626479,"user":{"login":"riknos314","id":8736936,"avatar_url":"https://avatars.githubusercontent.com/u/8736936?v=3","gravatar_id":"","url":"https://api.github.com/users/riknos314","html_url":"https://github.com/riknos314","followers_url":"https://api.github.com/users/riknos314/followers","following_url":"https://api.github.com/users/riknos314/following{/other_user}","gists_url":"https://api.github.com/users/riknos314/gists{/gist_id}","starred_url":"https://api.github.com/users/riknos314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riknos314/subscriptions","organizations_url":"https://api.github.com/users/riknos314/orgs","repos_url":"https://api.github.com/users/riknos314/repos","events_url":"https://api.github.com/users/riknos314/events{/privacy}","received_events_url":"https://api.github.com/users/riknos314/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T19:56:52Z","updated_at":"2015-06-19T19:56:52Z","body":"Assess.js was the largest offender of this, and has been fixed in the updateAssessFunc branch which has now been merged to master.  Many other components have also been converted or developed in the styling.\r\nFuture components will all be developed in compliance with this idea."}}