{"action":"created","issue":{"url":"https://api.github.com/repos/arose/ngl/issues/170","repository_url":"https://api.github.com/repos/arose/ngl","labels_url":"https://api.github.com/repos/arose/ngl/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/arose/ngl/issues/170/comments","events_url":"https://api.github.com/repos/arose/ngl/issues/170/events","html_url":"https://github.com/arose/ngl/issues/170","id":166669175,"number":170,"title":"superpose: ReferenceError: NGL is not defined","user":{"login":"hainm","id":4451957,"avatar_url":"https://avatars.githubusercontent.com/u/4451957?v=3","gravatar_id":"","url":"https://api.github.com/users/hainm","html_url":"https://github.com/hainm","followers_url":"https://api.github.com/users/hainm/followers","following_url":"https://api.github.com/users/hainm/following{/other_user}","gists_url":"https://api.github.com/users/hainm/gists{/gist_id}","starred_url":"https://api.github.com/users/hainm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hainm/subscriptions","organizations_url":"https://api.github.com/users/hainm/orgs","repos_url":"https://api.github.com/users/hainm/repos","events_url":"https://api.github.com/users/hainm/events{/privacy}","received_events_url":"https://api.github.com/users/hainm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-20T20:04:09Z","updated_at":"2016-07-21T01:06:57Z","closed_at":null,"body":"(I am using code from ngl dev, just pulled)\r\n\r\n```javascript\r\n        superpose: function(cindex0, cindex1, params){\r\n           // superpose two components with given params (not yet)\r\n           var component0 = this.stage.compList[cindex0];\r\n           var component1 = this.stage.compList[cindex1];\r\n           //component0.superpose(component1);\r\n           console.log(component0.superpose);\r\n           //NGL.useWorker = true;\r\n           component0.superpose(component1);\r\n           //NGL.useWorker = false;\r\n        },\r\n```\r\n\r\nIn console, I can see the function 'superpose' code but keep getting 'ReferenceError: NGL is not defined'.\r\n\r\nAny idea how to fix it? thanks."},"comment":{"url":"https://api.github.com/repos/arose/ngl/issues/comments/234129171","html_url":"https://github.com/arose/ngl/issues/170#issuecomment-234129171","issue_url":"https://api.github.com/repos/arose/ngl/issues/170","id":234129171,"user":{"login":"hainm","id":4451957,"avatar_url":"https://avatars.githubusercontent.com/u/4451957?v=3","gravatar_id":"","url":"https://api.github.com/users/hainm","html_url":"https://github.com/hainm","followers_url":"https://api.github.com/users/hainm/followers","following_url":"https://api.github.com/users/hainm/following{/other_user}","gists_url":"https://api.github.com/users/hainm/gists{/gist_id}","starred_url":"https://api.github.com/users/hainm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hainm/subscriptions","organizations_url":"https://api.github.com/users/hainm/orgs","repos_url":"https://api.github.com/users/hainm/repos","events_url":"https://api.github.com/users/hainm/events{/privacy}","received_events_url":"https://api.github.com/users/hainm/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T01:06:57Z","updated_at":"2016-07-21T01:06:57Z","body":"> var C = e.getView(new NGL.Selection(r + \" and .CA\"))\r\n\r\n(saw from minimized code)"}}
{"actor":{"display_login":"hainm"}}