{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/815","labels_url":"https://api.github.com/repos/processing/p5.js/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/815/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/815/events","html_url":"https://github.com/processing/p5.js/issues/815","id":96059059,"number":815,"title":"registerPreloadMethod failing on various types of objects","user":{"login":"dhowe","id":737638,"avatar_url":"https://avatars.githubusercontent.com/u/737638?v=3","gravatar_id":"","url":"https://api.github.com/users/dhowe","html_url":"https://github.com/dhowe","followers_url":"https://api.github.com/users/dhowe/followers","following_url":"https://api.github.com/users/dhowe/following{/other_user}","gists_url":"https://api.github.com/users/dhowe/gists{/gist_id}","starred_url":"https://api.github.com/users/dhowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhowe/subscriptions","organizations_url":"https://api.github.com/users/dhowe/orgs","repos_url":"https://api.github.com/users/dhowe/repos","events_url":"https://api.github.com/users/dhowe/events{/privacy}","received_events_url":"https://api.github.com/users/dhowe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/processing/p5.js/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-07-20T13:03:45Z","updated_at":"2015-12-06T11:04:26Z","closed_at":null,"body":"A question: let's say I have a p5-compatible library (MyLib) with an object literal in it (MyLibObj), and this object literal has a function that the user would normally call as MyLibObj.loadObj(). Is there a nice way to register this function for preloading, without redefining it in some other scope?\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/processing/p5.js/issues/comments/162303678","html_url":"https://github.com/processing/p5.js/issues/815#issuecomment-162303678","issue_url":"https://api.github.com/repos/processing/p5.js/issues/815","id":162303678,"user":{"login":"dhowe","id":737638,"avatar_url":"https://avatars.githubusercontent.com/u/737638?v=3","gravatar_id":"","url":"https://api.github.com/users/dhowe","html_url":"https://github.com/dhowe","followers_url":"https://api.github.com/users/dhowe/followers","following_url":"https://api.github.com/users/dhowe/following{/other_user}","gists_url":"https://api.github.com/users/dhowe/gists{/gist_id}","starred_url":"https://api.github.com/users/dhowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhowe/subscriptions","organizations_url":"https://api.github.com/users/dhowe/orgs","repos_url":"https://api.github.com/users/dhowe/repos","events_url":"https://api.github.com/users/dhowe/events{/privacy}","received_events_url":"https://api.github.com/users/dhowe/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T11:04:26Z","updated_at":"2015-12-06T11:04:26Z","body":"<i class=\"fa fa-thumbs-up\"></i>\r\n"}}