{"action":"closed","issue":{"url":"https://api.github.com/repos/hoxton-one/golden-layout/issues/32","labels_url":"https://api.github.com/repos/hoxton-one/golden-layout/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/hoxton-one/golden-layout/issues/32/comments","events_url":"https://api.github.com/repos/hoxton-one/golden-layout/issues/32/events","html_url":"https://github.com/hoxton-one/golden-layout/issues/32","id":54820257,"number":32,"title":"Is there an event that I can subscribe to when an Item is added to the DOM?","user":{"login":"wiscow","id":1581947,"avatar_url":"https://avatars.githubusercontent.com/u/1581947?v=3","gravatar_id":"","url":"https://api.github.com/users/wiscow","html_url":"https://github.com/wiscow","followers_url":"https://api.github.com/users/wiscow/followers","following_url":"https://api.github.com/users/wiscow/following{/other_user}","gists_url":"https://api.github.com/users/wiscow/gists{/gist_id}","starred_url":"https://api.github.com/users/wiscow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiscow/subscriptions","organizations_url":"https://api.github.com/users/wiscow/orgs","repos_url":"https://api.github.com/users/wiscow/repos","events_url":"https://api.github.com/users/wiscow/events{/privacy}","received_events_url":"https://api.github.com/users/wiscow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-19T22:28:27Z","updated_at":"2015-01-20T17:22:59Z","closed_at":"2015-01-20T17:22:59Z","body":"I am currently using a plugin that accesses items that are currently on the DOM through `document.getElementByID`. Searching though the code, it looks like function that adds components to the layout happens before the ContentItem is actually added to the DOM.  This is causing problems in the plugin.  I gave the item added event a shot but that seems to fire before the item is added.  The one event that kind of worked was to subscribe to the 'open' event of the container, but that only fires once when the container is first loaded and has been added to the DOM.    We are currently using Backbone as a framework and what i am trying to achieve is to call `render()` on my view after the contentitem has been added to the DOM.  Got any ideas? Any help would be appreciated, I can provide examples if need be.\r\n\r\nThanks!"}}