{"action":"created","issue":{"url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/7","labels_url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/7/comments","events_url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/7/events","html_url":"https://github.com/oskarszoon/meteor-bootstrap-daterangepicker/issues/7","id":89412256,"number":7,"title":"moment is not a function","user":{"login":"jimmiebtlr","id":1325560,"avatar_url":"https://avatars.githubusercontent.com/u/1325560?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmiebtlr","html_url":"https://github.com/jimmiebtlr","followers_url":"https://api.github.com/users/jimmiebtlr/followers","following_url":"https://api.github.com/users/jimmiebtlr/following{/other_user}","gists_url":"https://api.github.com/users/jimmiebtlr/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmiebtlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmiebtlr/subscriptions","organizations_url":"https://api.github.com/users/jimmiebtlr/orgs","repos_url":"https://api.github.com/users/jimmiebtlr/repos","events_url":"https://api.github.com/users/jimmiebtlr/events{/privacy}","received_events_url":"https://api.github.com/users/jimmiebtlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-18T22:26:49Z","updated_at":"2015-07-13T09:20:33Z","closed_at":null,"body":"When I try to use it like so\r\n```\r\nTemplate._serviceTicketsIndexDateRange.rendered = function(){\r\n  this.$('input[name=\"daterange\"]').daterangepicker();\r\n};\r\n```\r\n\r\nI get \r\n```\r\nTypeError: moment is not a function\r\n    at DateRangePicker.setOptions (http://localhost:3000/packages/loftsteinn_bootstrap3-daterangepicker.js?73679da016771352c9af48d8ada5317d47620eb9:146:30)\r\n    at new DateRangePicker (http://localhost:3000/packages/loftsteinn_bootstrap3-daterangepicker.js?73679da016771352c9af48d8ada5317d47620eb9:104:14)\r\n```\r\n\r\nWhich is the first line of setOptions in the dateRangePicker prototype.\r\n\r\nVersions\r\n```\r\nloftsteinn:bootstrap3-daterangepicker@1.3.21\r\nmomentjs:moment@2.10.3\r\n```\r\n\r\n\r\nI use moment throughout the application, so I'm a bit clueless currently as to the cause."},"comment":{"url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/comments/120865284","html_url":"https://github.com/oskarszoon/meteor-bootstrap-daterangepicker/issues/7#issuecomment-120865284","issue_url":"https://api.github.com/repos/oskarszoon/meteor-bootstrap-daterangepicker/issues/7","id":120865284,"user":{"login":"cranesandcaff","id":1912168,"avatar_url":"https://avatars.githubusercontent.com/u/1912168?v=3","gravatar_id":"","url":"https://api.github.com/users/cranesandcaff","html_url":"https://github.com/cranesandcaff","followers_url":"https://api.github.com/users/cranesandcaff/followers","following_url":"https://api.github.com/users/cranesandcaff/following{/other_user}","gists_url":"https://api.github.com/users/cranesandcaff/gists{/gist_id}","starred_url":"https://api.github.com/users/cranesandcaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cranesandcaff/subscriptions","organizations_url":"https://api.github.com/users/cranesandcaff/orgs","repos_url":"https://api.github.com/users/cranesandcaff/repos","events_url":"https://api.github.com/users/cranesandcaff/events{/privacy}","received_events_url":"https://api.github.com/users/cranesandcaff/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T09:20:32Z","updated_at":"2015-07-13T09:20:32Z","body":"My solution was to use the alternative package:\r\nhttps://atmospherejs.com/gilbertwat/bootstrap3-daterangepicker"}}