{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1032","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1032/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1032/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1032","id":77717375,"number":1032,"title":"Object does not registred while js call to c#.","user":{"login":"tonn","id":166351,"avatar_url":"https://avatars.githubusercontent.com/u/166351?v=3","gravatar_id":"","url":"https://api.github.com/users/tonn","html_url":"https://github.com/tonn","followers_url":"https://api.github.com/users/tonn/followers","following_url":"https://api.github.com/users/tonn/following{/other_user}","gists_url":"https://api.github.com/users/tonn/gists{/gist_id}","starred_url":"https://api.github.com/users/tonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonn/subscriptions","organizations_url":"https://api.github.com/users/tonn/orgs","repos_url":"https://api.github.com/users/tonn/repos","events_url":"https://api.github.com/users/tonn/events{/privacy}","received_events_url":"https://api.github.com/users/tonn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-18T16:26:26Z","updated_at":"2015-05-19T08:59:13Z","closed_at":null,"body":"Some pseudo-code to show which class structure I want to use\r\n\r\n```\r\n--- mainform.cs ---\r\n\r\nbrowser.RegisterJsObject(\"jsproxy\", new JSProxy())\r\n\r\n--- JSProxy.cs ---\r\n\r\nclass JSProxy\r\n{\r\n  CreateModel()\r\n  {\r\n    browser.RegisterJsObject(\"model\", new model());\r\n  }\r\n}\r\n\r\n--- view.js ---\r\n\r\nJSProxy.CreateModel() <--- JSProxy work normally\r\nvar data = model.someprop; <---- model is undefined\r\n```\r\n\r\nAre there some restrictions to use browser.RegisterJsObject? \r\nIs it possible to create dynamicaly c#-objects from js code and get access to this object from js?\r\nHow can I UnRegisterJsObject?"},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/103404944","html_url":"https://github.com/cefsharp/CefSharp/issues/1032#issuecomment-103404944","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1032","id":103404944,"user":{"login":"tonn","id":166351,"avatar_url":"https://avatars.githubusercontent.com/u/166351?v=3","gravatar_id":"","url":"https://api.github.com/users/tonn","html_url":"https://github.com/tonn","followers_url":"https://api.github.com/users/tonn/followers","following_url":"https://api.github.com/users/tonn/following{/other_user}","gists_url":"https://api.github.com/users/tonn/gists{/gist_id}","starred_url":"https://api.github.com/users/tonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonn/subscriptions","organizations_url":"https://api.github.com/users/tonn/orgs","repos_url":"https://api.github.com/users/tonn/repos","events_url":"https://api.github.com/users/tonn/events{/privacy}","received_events_url":"https://api.github.com/users/tonn/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T08:59:13Z","updated_at":"2015-05-19T08:59:13Z","body":"> amaitland: Yes there are, see the FAQ.\r\n> from FAQ: // After your ChromiumWebBrowser has been created\r\nThere is just example where RegisterJsObject calls before browser is shown (or when it is doing binding of all RegisterJsObject-objects? ), but there is not note about necessary of this sequence call methods. It is not so obviously. Can you write remark about this case explicitly in FAQ?\r\nThanks."}}