{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1295","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1295/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1295/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1295","id":108465969,"number":1295,"title":"Binding Javascript Children","user":{"login":"airbrowsetechnologies","id":12844942,"avatar_url":"https://avatars.githubusercontent.com/u/12844942?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrowsetechnologies","html_url":"https://github.com/airbrowsetechnologies","followers_url":"https://api.github.com/users/airbrowsetechnologies/followers","following_url":"https://api.github.com/users/airbrowsetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/airbrowsetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrowsetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrowsetechnologies/subscriptions","organizations_url":"https://api.github.com/users/airbrowsetechnologies/orgs","repos_url":"https://api.github.com/users/airbrowsetechnologies/repos","events_url":"https://api.github.com/users/airbrowsetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/airbrowsetechnologies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-26T13:49:31Z","updated_at":"2015-09-27T14:06:38Z","closed_at":null,"body":"I'm wondering if it is currently possible to bind Javascript children callbacks.\r\nFor example I know you can call something like \r\n`myGlobalObj.doSomething();`\r\n\r\nbut what about \r\n`myGlobalObj.child.doSomething(); myGlobalObj.child2.doSomething();`\r\n\r\nI have not found a way yet and am wondering if it is possible. If not this would be a great feature.\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/143560601","html_url":"https://github.com/cefsharp/CefSharp/issues/1295#issuecomment-143560601","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1295","id":143560601,"user":{"login":"airbrowsetechnologies","id":12844942,"avatar_url":"https://avatars.githubusercontent.com/u/12844942?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrowsetechnologies","html_url":"https://github.com/airbrowsetechnologies","followers_url":"https://api.github.com/users/airbrowsetechnologies/followers","following_url":"https://api.github.com/users/airbrowsetechnologies/following{/other_user}","gists_url":"https://api.github.com/users/airbrowsetechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrowsetechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrowsetechnologies/subscriptions","organizations_url":"https://api.github.com/users/airbrowsetechnologies/orgs","repos_url":"https://api.github.com/users/airbrowsetechnologies/repos","events_url":"https://api.github.com/users/airbrowsetechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/airbrowsetechnologies/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T14:06:38Z","updated_at":"2015-09-27T14:06:38Z","body":"Yes that's what I meant. Sorry I was at a lack of words.\r\n\r\nSo I know how to get to this point:\r\n\r\n` browser.RegisterJsObject(\"MyObject\", New MyObject, False)`\r\n```     \r\n     Public Class MyObject\r\n        Public Function doSomething()\r\n            Return True\r\n        End Function\r\n     End Class\r\n``` \r\nHow would I bind the subObject?\r\nWould creating an object in the class do that automatically?\r\n```     \r\n     Public Class MyObject\r\n         Public subItem as new SubItem\r\n\r\n         Public Class SubItem\r\n             Public Function doSomething()\r\n                 Return True\r\n             End Function\r\n         End Class\r\n \r\n\r\n        Public Function doSomething()\r\n            Return True\r\n        End Function\r\n     End Class\r\n``` \r\n\r\nor do I have to bind it with `browser.RegisterJsObject(\"kratos.subObject\", New SubObject, False)` ?\r\nI have tried both and both say that `kratos.subObject.doSomething();` is null when executed through the console."}}