{"action":"created","issue":{"url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/2","labels_url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/2/comments","events_url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/2/events","html_url":"https://github.com/herrhelms/meteor-leaflet-markercluster/issues/2","id":103966713,"number":2,"title":"Meteor startup not work","user":{"login":"stefanocudini","id":47107,"avatar_url":"https://avatars.githubusercontent.com/u/47107?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanocudini","html_url":"https://github.com/stefanocudini","followers_url":"https://api.github.com/users/stefanocudini/followers","following_url":"https://api.github.com/users/stefanocudini/following{/other_user}","gists_url":"https://api.github.com/users/stefanocudini/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanocudini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanocudini/subscriptions","organizations_url":"https://api.github.com/users/stefanocudini/orgs","repos_url":"https://api.github.com/users/stefanocudini/repos","events_url":"https://api.github.com/users/stefanocudini/events{/privacy}","received_events_url":"https://api.github.com/users/stefanocudini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T00:48:55Z","updated_at":"2015-08-31T10:35:20Z","closed_at":null,"body":"move cose outside of Meteor.startup\r\nthis cause error in more cases:\r\n```Uncaught TypeError: L.MarkerClusterGroup is not a function``"},"comment":{"url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/comments/136329350","html_url":"https://github.com/herrhelms/meteor-leaflet-markercluster/issues/2#issuecomment-136329350","issue_url":"https://api.github.com/repos/herrhelms/meteor-leaflet-markercluster/issues/2","id":136329350,"user":{"login":"stefanocudini","id":47107,"avatar_url":"https://avatars.githubusercontent.com/u/47107?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanocudini","html_url":"https://github.com/stefanocudini","followers_url":"https://api.github.com/users/stefanocudini/followers","following_url":"https://api.github.com/users/stefanocudini/following{/other_user}","gists_url":"https://api.github.com/users/stefanocudini/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanocudini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanocudini/subscriptions","organizations_url":"https://api.github.com/users/stefanocudini/orgs","repos_url":"https://api.github.com/users/stefanocudini/repos","events_url":"https://api.github.com/users/stefanocudini/events{/privacy}","received_events_url":"https://api.github.com/users/stefanocudini/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T10:35:20Z","updated_at":"2015-08-31T10:35:20Z","body":"In my use case I have a MAP module that use markerclustergroup outside of meteor.startup\r\n*head of my map module:*\r\n```javascript\r\n//map module, layers,controls e panels\r\nvar map = null,\r\n\tinitialized = false,\r\n\tlayers = {},\r\n\tcontrols = {};\r\n\r\nlayers.cluster = new L.MarkerClusterGroup({\r\n...\r\nmap = L.map(...\r\n...\r\n```\r\nI think that this is a normal structure for meteor apps\r\n\r\nif you wrap the lib inside the meteor startup every modules of the meteor app can be access to this lib only after the dom is ready... then I think that it isn't good way"}}