{"action":"opened","number":3126,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126","id":40836414,"html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3126","diff_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3126.diff","patch_url":"https://github.com/sonata-project/SonataAdminBundle/pull/3126.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3126","number":3126,"state":"open","locked":false,"title":"Execute Admin methods after the object is defined","user":{"login":"andythorne","id":1301181,"avatar_url":"https://avatars.githubusercontent.com/u/1301181?v=3","gravatar_id":"","url":"https://api.github.com/users/andythorne","html_url":"https://github.com/andythorne","followers_url":"https://api.github.com/users/andythorne/followers","following_url":"https://api.github.com/users/andythorne/following{/other_user}","gists_url":"https://api.github.com/users/andythorne/gists{/gist_id}","starred_url":"https://api.github.com/users/andythorne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andythorne/subscriptions","organizations_url":"https://api.github.com/users/andythorne/orgs","repos_url":"https://api.github.com/users/andythorne/repos","events_url":"https://api.github.com/users/andythorne/events{/privacy}","received_events_url":"https://api.github.com/users/andythorne/received_events","type":"User","site_admin":false},"body":"The Admin.js file first sets up event listeners. When loaded asynchronously, document ready may have already fired, casing instant execution and a JS error as the Admin has not been defined.\r\n\r\nMoving the event after the Admin object definition fixes this problem.","created_at":"2015-07-25T12:43:52Z","updated_at":"2015-07-25T12:43:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3126/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/54f2ab11e1037ebe35899db71009844e218a0013","head":{"label":"andythorne:js-admin-reference-bug","ref":"js-admin-reference-bug","sha":"54f2ab11e1037ebe35899db71009844e218a0013","user":{"login":"andythorne","id":1301181,"avatar_url":"https://avatars.githubusercontent.com/u/1301181?v=3","gravatar_id":"","url":"https://api.github.com/users/andythorne","html_url":"https://github.com/andythorne","followers_url":"https://api.github.com/users/andythorne/followers","following_url":"https://api.github.com/users/andythorne/following{/other_user}","gists_url":"https://api.github.com/users/andythorne/gists{/gist_id}","starred_url":"https://api.github.com/users/andythorne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andythorne/subscriptions","organizations_url":"https://api.github.com/users/andythorne/orgs","repos_url":"https://api.github.com/users/andythorne/repos","events_url":"https://api.github.com/users/andythorne/events{/privacy}","received_events_url":"https://api.github.com/users/andythorne/received_events","type":"User","site_admin":false},"repo":{"id":39684395,"name":"SonataAdminBundle","full_name":"andythorne/SonataAdminBundle","owner":{"login":"andythorne","id":1301181,"avatar_url":"https://avatars.githubusercontent.com/u/1301181?v=3","gravatar_id":"","url":"https://api.github.com/users/andythorne","html_url":"https://github.com/andythorne","followers_url":"https://api.github.com/users/andythorne/followers","following_url":"https://api.github.com/users/andythorne/following{/other_user}","gists_url":"https://api.github.com/users/andythorne/gists{/gist_id}","starred_url":"https://api.github.com/users/andythorne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andythorne/subscriptions","organizations_url":"https://api.github.com/users/andythorne/orgs","repos_url":"https://api.github.com/users/andythorne/repos","events_url":"https://api.github.com/users/andythorne/events{/privacy}","received_events_url":"https://api.github.com/users/andythorne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andythorne/SonataAdminBundle","description":"AdminBundle - The missing Symfony2 Admin Generator","fork":true,"url":"https://api.github.com/repos/andythorne/SonataAdminBundle","forks_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/forks","keys_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/teams","hooks_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/events","assignees_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/tags","blobs_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/languages","stargazers_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/subscription","commits_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/merges","archive_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/downloads","issues_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/andythorne/SonataAdminBundle/releases{/id}","created_at":"2015-07-25T12:37:28Z","updated_at":"2015-07-25T12:37:31Z","pushed_at":"2015-07-25T12:41:46Z","git_url":"git://github.com/andythorne/SonataAdminBundle.git","ssh_url":"git@github.com:andythorne/SonataAdminBundle.git","clone_url":"https://github.com/andythorne/SonataAdminBundle.git","svn_url":"https://github.com/andythorne/SonataAdminBundle","homepage":"http://sonata-project.org/bundles/admin","size":26590,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sonata-project:master","ref":"master","sha":"266314cc895d35747b4c966136949fabff1bafb3","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":1095228,"name":"SonataAdminBundle","full_name":"sonata-project/SonataAdminBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataAdminBundle","description":"AdminBundle - The missing Symfony2 Admin Generator","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/releases{/id}","created_at":"2010-11-19T17:08:52Z","updated_at":"2015-07-25T10:26:24Z","pushed_at":"2015-07-25T12:43:52Z","git_url":"git://github.com/sonata-project/SonataAdminBundle.git","ssh_url":"git@github.com:sonata-project/SonataAdminBundle.git","clone_url":"https://github.com/sonata-project/SonataAdminBundle.git","svn_url":"https://github.com/sonata-project/SonataAdminBundle","homepage":"http://sonata-project.org/bundles/admin","size":26590,"stargazers_count":1217,"watchers_count":1217,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":845,"mirror_url":null,"open_issues_count":443,"forks":845,"open_issues":443,"watchers":1217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126"},"html":{"href":"https://github.com/sonata-project/SonataAdminBundle/pull/3126"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3126"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3126/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/3126/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataAdminBundle/statuses/54f2ab11e1037ebe35899db71009844e218a0013"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":17,"changed_files":1}}