{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/2849","repository_url":"https://api.github.com/repos/Dogfalo/materialize","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/2849/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/2849/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/2849/events","html_url":"https://github.com/Dogfalo/materialize/issues/2849","id":137081129,"number":2849,"title":"$(...).pushpin is not a function","user":{"login":"jessor","id":480451,"avatar_url":"https://avatars.githubusercontent.com/u/480451?v=3","gravatar_id":"","url":"https://api.github.com/users/jessor","html_url":"https://github.com/jessor","followers_url":"https://api.github.com/users/jessor/followers","following_url":"https://api.github.com/users/jessor/following{/other_user}","gists_url":"https://api.github.com/users/jessor/gists{/gist_id}","starred_url":"https://api.github.com/users/jessor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessor/subscriptions","organizations_url":"https://api.github.com/users/jessor/orgs","repos_url":"https://api.github.com/users/jessor/repos","events_url":"https://api.github.com/users/jessor/events{/privacy}","received_events_url":"https://api.github.com/users/jessor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-28T18:39:30Z","updated_at":"2016-02-29T13:14:16Z","closed_at":null,"body":"I'm initializing Pushpin in a WordPress theme like this:\r\n```\r\n(function($){\r\n  $(function(){\r\n    $(\".button-collapse\").sideNav();  // works\r\n    $('#tribe-events-bar').pushpin(); // error: $(...).pushpin is not a function\r\n   });\r\n})(jQuery);  \r\n```\r\n\r\nRemoving the wrapping `$(document).ready(function() {` `});` in materialize.js fixes this."},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/190206274","html_url":"https://github.com/Dogfalo/materialize/issues/2849#issuecomment-190206274","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/2849","id":190206274,"user":{"login":"Kail0","id":2068046,"avatar_url":"https://avatars.githubusercontent.com/u/2068046?v=3","gravatar_id":"","url":"https://api.github.com/users/Kail0","html_url":"https://github.com/Kail0","followers_url":"https://api.github.com/users/Kail0/followers","following_url":"https://api.github.com/users/Kail0/following{/other_user}","gists_url":"https://api.github.com/users/Kail0/gists{/gist_id}","starred_url":"https://api.github.com/users/Kail0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kail0/subscriptions","organizations_url":"https://api.github.com/users/Kail0/orgs","repos_url":"https://api.github.com/users/Kail0/repos","events_url":"https://api.github.com/users/Kail0/events{/privacy}","received_events_url":"https://api.github.com/users/Kail0/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T13:14:16Z","updated_at":"2016-02-29T13:14:16Z","body":"Well, you can try \r\n`jQuery(document).ready(function(){` ` });` instead of `$(document).ready(function() { });`"}}