{"action":"created","issue":{"url":"https://api.github.com/repos/opal/opal/issues/697","labels_url":"https://api.github.com/repos/opal/opal/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/opal/opal/issues/697/comments","events_url":"https://api.github.com/repos/opal/opal/issues/697/events","html_url":"https://github.com/opal/opal/pull/697","id":56814165,"number":697,"title":"Utility to run a block in context of `this`","user":{"login":"sleewoo","id":9264860,"avatar_url":"https://avatars.githubusercontent.com/u/9264860?v=3","gravatar_id":"","url":"https://api.github.com/users/sleewoo","html_url":"https://github.com/sleewoo","followers_url":"https://api.github.com/users/sleewoo/followers","following_url":"https://api.github.com/users/sleewoo/following{/other_user}","gists_url":"https://api.github.com/users/sleewoo/gists{/gist_id}","starred_url":"https://api.github.com/users/sleewoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleewoo/subscriptions","organizations_url":"https://api.github.com/users/sleewoo/orgs","repos_url":"https://api.github.com/users/sleewoo/repos","events_url":"https://api.github.com/users/sleewoo/events{/privacy}","received_events_url":"https://api.github.com/users/sleewoo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opal/opal/labels/discuss","name":"discuss","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-06T13:54:42Z","updated_at":"2015-02-09T22:30:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opal/opal/pulls/697","html_url":"https://github.com/opal/opal/pull/697","diff_url":"https://github.com/opal/opal/pull/697.diff","patch_url":"https://github.com/opal/opal/pull/697.patch"},"body":"When passing a block it will run in the context it was defined, normally.\r\nThis method wraps the block into a proc that when called will run the block in context of incoming `this`\r\n\r\nhttps://gist.github.com/sleewoo/8d785061fc0cfbe5675d\r\n"},"comment":{"url":"https://api.github.com/repos/opal/opal/issues/comments/73604666","html_url":"https://github.com/opal/opal/pull/697#issuecomment-73604666","issue_url":"https://api.github.com/repos/opal/opal/issues/697","id":73604666,"user":{"login":"elia","id":1051,"avatar_url":"https://avatars.githubusercontent.com/u/1051?v=3","gravatar_id":"","url":"https://api.github.com/users/elia","html_url":"https://github.com/elia","followers_url":"https://api.github.com/users/elia/followers","following_url":"https://api.github.com/users/elia/following{/other_user}","gists_url":"https://api.github.com/users/elia/gists{/gist_id}","starred_url":"https://api.github.com/users/elia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elia/subscriptions","organizations_url":"https://api.github.com/users/elia/orgs","repos_url":"https://api.github.com/users/elia/repos","events_url":"https://api.github.com/users/elia/events{/privacy}","received_events_url":"https://api.github.com/users/elia/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T22:30:05Z","updated_at":"2015-02-09T22:30:05Z","body":"I like the idea, but I'd like to discuss with @adambeynon and @meh about:\r\n\r\n- the name `function` (not sure if it's clear what it does)\r\n- how `@this` is made available (not very fond of instance vars)\r\n\r\nand then it would need some specs :)"}}