{"action":"created","issue":{"url":"https://api.github.com/repos/aristath/kirki/issues/847","repository_url":"https://api.github.com/repos/aristath/kirki","labels_url":"https://api.github.com/repos/aristath/kirki/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/aristath/kirki/issues/847/comments","events_url":"https://api.github.com/repos/aristath/kirki/issues/847/events","html_url":"https://github.com/aristath/kirki/issues/847","id":146809973,"number":847,"title":"Javascript Console Errors: \"wp.customize\" object undefined","user":{"login":"daviedR","id":1287713,"avatar_url":"https://avatars.githubusercontent.com/u/1287713?v=3","gravatar_id":"","url":"https://api.github.com/users/daviedR","html_url":"https://github.com/daviedR","followers_url":"https://api.github.com/users/daviedR/followers","following_url":"https://api.github.com/users/daviedR/following{/other_user}","gists_url":"https://api.github.com/users/daviedR/gists{/gist_id}","starred_url":"https://api.github.com/users/daviedR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviedR/subscriptions","organizations_url":"https://api.github.com/users/daviedR/orgs","repos_url":"https://api.github.com/users/daviedR/repos","events_url":"https://api.github.com/users/daviedR/events{/privacy}","received_events_url":"https://api.github.com/users/daviedR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aristath/kirki/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-04-08T04:28:43Z","updated_at":"2016-04-08T18:14:59Z","closed_at":null,"body":"### Issue description:\r\nIt seems in version 2.2.8 above the controls javascript doesn't recognize the `wp.customize` object. When I did \"view source\" the WordPress scrip load for `customize-base` etc comes after the Kirki controls javascript. That might causes the error, since `wp.customize` object is still undefined.\r\n\r\nI tested on v2.2.6 and it worked fine. The script load sequence also makes sense.\r\n\r\n### Version used:\r\n2.2.8 above\r\n\r\n### Using theme_mods or options?\r\nboth mode doesn't work"},"comment":{"url":"https://api.github.com/repos/aristath/kirki/issues/comments/207543058","html_url":"https://github.com/aristath/kirki/issues/847#issuecomment-207543058","issue_url":"https://api.github.com/repos/aristath/kirki/issues/847","id":207543058,"user":{"login":"aristath","id":588688,"avatar_url":"https://avatars.githubusercontent.com/u/588688?v=3","gravatar_id":"","url":"https://api.github.com/users/aristath","html_url":"https://github.com/aristath","followers_url":"https://api.github.com/users/aristath/followers","following_url":"https://api.github.com/users/aristath/following{/other_user}","gists_url":"https://api.github.com/users/aristath/gists{/gist_id}","starred_url":"https://api.github.com/users/aristath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristath/subscriptions","organizations_url":"https://api.github.com/users/aristath/orgs","repos_url":"https://api.github.com/users/aristath/repos","events_url":"https://api.github.com/users/aristath/events{/privacy}","received_events_url":"https://api.github.com/users/aristath/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T18:14:59Z","updated_at":"2016-04-08T18:14:59Z","body":"@guillaumemolter I did the exact same thing and was about to push my commits when I saw you already had 2 PRs that did exactly the same.\r\neach of them separately didn't fix the issue, but combined they did. :+1: \r\nSo I just merged your PRs :)"}}