{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/1915","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1915/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1915/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1915/events","html_url":"https://github.com/Dogfalo/materialize/issues/1915","id":101139387,"number":1915,"title":"ReferenceError: Materialize is not defined when calling Materialize.toast","user":{"login":"salmansqadeer","id":310782,"avatar_url":"https://avatars.githubusercontent.com/u/310782?v=3","gravatar_id":"","url":"https://api.github.com/users/salmansqadeer","html_url":"https://github.com/salmansqadeer","followers_url":"https://api.github.com/users/salmansqadeer/followers","following_url":"https://api.github.com/users/salmansqadeer/following{/other_user}","gists_url":"https://api.github.com/users/salmansqadeer/gists{/gist_id}","starred_url":"https://api.github.com/users/salmansqadeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salmansqadeer/subscriptions","organizations_url":"https://api.github.com/users/salmansqadeer/orgs","repos_url":"https://api.github.com/users/salmansqadeer/repos","events_url":"https://api.github.com/users/salmansqadeer/events{/privacy}","received_events_url":"https://api.github.com/users/salmansqadeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-15T04:33:28Z","updated_at":"2015-08-15T04:45:39Z","closed_at":null,"body":"Hey guys,\r\n\r\nMy app is throwing errors in my console, and while the behavior is operating as expected (I am seeing the correct notification appear), the errors are worrysome and I'm wondering if I am doing anything wrong. \r\n\r\nMy code:\r\n\r\n`\r\nMaterialize.toast('Sent Followup Email to Contact', 3000);\r\n`\r\n\r\nThe error I am seeing:\r\n`\r\nI20150815-00:31:43.130(-4)? Exception while invoking method 'followUpOnTask' ReferenceError: Materialize is not defined\r\nI20150815-00:31:43.130(-4)?   at [object Object].Meteor.methods.followUpOnTask (app/source/tasks-methods.js:146:1)\r\nI20150815-00:31:43.131(-4)?   at maybeAuditArgumentChecks (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:2445:12)\r\nI20150815-00:31:43.131(-4)?   at /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1476:20\r\nI20150815-00:31:43.132(-4)?   at [object Object]._.extend.withValue (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/meteor.js:989:17)\r\nI20150815-00:31:43.132(-4)?   at /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1475:41\r\nI20150815-00:31:43.132(-4)?   at [object Object]._.extend.withValue (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/meteor.js:989:17)\r\nI20150815-00:31:43.132(-4)?   at [object Object]._.extend.protocol_handlers.method (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1474:51)\r\nI20150815-00:31:43.132(-4)?   at /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1374:43\r\nI20150815-00:31:43.133(-4)? \r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/131293524","html_url":"https://github.com/Dogfalo/materialize/issues/1915#issuecomment-131293524","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1915","id":131293524,"user":{"login":"Dogfalo","id":2775751,"avatar_url":"https://avatars.githubusercontent.com/u/2775751?v=3","gravatar_id":"","url":"https://api.github.com/users/Dogfalo","html_url":"https://github.com/Dogfalo","followers_url":"https://api.github.com/users/Dogfalo/followers","following_url":"https://api.github.com/users/Dogfalo/following{/other_user}","gists_url":"https://api.github.com/users/Dogfalo/gists{/gist_id}","starred_url":"https://api.github.com/users/Dogfalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dogfalo/subscriptions","organizations_url":"https://api.github.com/users/Dogfalo/orgs","repos_url":"https://api.github.com/users/Dogfalo/repos","events_url":"https://api.github.com/users/Dogfalo/events{/privacy}","received_events_url":"https://api.github.com/users/Dogfalo/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T04:45:39Z","updated_at":"2015-08-15T04:45:39Z","body":"sounds like you are on an old build\n\nOn Fri, Aug 14, 2015 at 9:33 PM, Salman Suhail <notifications@github.com>\nwrote:\n\n> Hey guys,\n>\n> My app is throwing errors in my console, and while the behavior is\n> operating as expected (I am seeing the correct notification appear), the\n> errors are worrysome and I'm wondering if I am doing anything wrong.\n>\n> My code:\n>\n>\n> Materialize.toast('Sent Followup Email to Contact', 3000);\n>\n> The error I am seeing:\n>\n> I20150815-00:31:43.130(-4)? Exception while invoking method\n> 'followUpOnTask' ReferenceError: Materialize is not defined\n> I20150815-00:31:43.130(-4)? at [object\n> Object].Meteor.methods.followUpOnTask (app/source/tasks-methods.js:146:1)\n> I20150815-00:31:43.131(-4)? at maybeAuditArgumentChecks\n> (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:2445:12)\n> I20150815-00:31:43.131(-4)? at\n> /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1476:20\n> I20150815-00:31:43.132(-4)? at [object Object]._.extend.withValue\n> (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/meteor.js:989:17)\n> I20150815-00:31:43.132(-4)? at\n> /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1475:41\n> I20150815-00:31:43.132(-4)? at [object Object]._.extend.withValue\n> (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/meteor.js:989:17)\n> I20150815-00:31:43.132(-4)? at [object\n> Object]._.extend.protocol_handlers.method\n> (/Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1474:51)\n> I20150815-00:31:43.132(-4)? at\n> /Users/salman.suhail/Dropbox/_CODE/meteor/simple-todos/.meteor/local/build/programs/server/packages/ddp.js:1374:43\n> I20150815-00:31:43.133(-4)?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Dogfalo/materialize/issues/1915>.\n>\n\n\n\n-- \nDoggy sends his greetings from Mars.\n"}}