{"action":"created","issue":{"url":"https://api.github.com/repos/wardbell/bardjs/issues/2","labels_url":"https://api.github.com/repos/wardbell/bardjs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wardbell/bardjs/issues/2/comments","events_url":"https://api.github.com/repos/wardbell/bardjs/issues/2/events","html_url":"https://github.com/wardbell/bardjs/issues/2","id":71551299,"number":2,"title":"PhantomJS error, works well in Chrome and Firefox","user":{"login":"lodnert","id":263224,"avatar_url":"https://avatars.githubusercontent.com/u/263224?v=3","gravatar_id":"","url":"https://api.github.com/users/lodnert","html_url":"https://github.com/lodnert","followers_url":"https://api.github.com/users/lodnert/followers","following_url":"https://api.github.com/users/lodnert/following{/other_user}","gists_url":"https://api.github.com/users/lodnert/gists{/gist_id}","starred_url":"https://api.github.com/users/lodnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lodnert/subscriptions","organizations_url":"https://api.github.com/users/lodnert/orgs","repos_url":"https://api.github.com/users/lodnert/repos","events_url":"https://api.github.com/users/lodnert/events{/privacy}","received_events_url":"https://api.github.com/users/lodnert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T10:37:45Z","updated_at":"2015-04-28T13:12:06Z","closed_at":null,"body":"Hi!\r\n\r\nI was just trying out bardjs and it seams to work fine in Chrome and Firefox, but when i run it in PhantomJS i get this error:\r\n\r\n```\r\nPhantomJS 1.9.8 (Mac OS X) Template Controller \"before each\" hook FAILED\r\n\tTypeError: 'undefined' is not a function (evaluating 'getCtxFromArgs.bind(this)')\r\n\t    at bardInject (/Users/lodnert/projects/myapp/app/bower_components/bardjs/dist/bard.js:277)\r\n\t    at /Users/lodnert/projects/myapp/test/spec/app/registry/template.controller.js:8\r\nPhantomJS 1.9.8 (Mac OS X): Executed 1 of 1 (1 FAILED) ERROR (0.002 secs / 0 secs)\r\n```\r\n\r\nHere is the spec-file. \r\n\r\n```\r\n\r\ndescribe('Controller: Auth', function () {\r\n  var controller;\r\n  beforeEach(function() {\r\n\r\n      bard.appModule('myapp.auth');\r\n      bard.inject('$controller', '$rootScope');\r\n\r\n  });\r\n\r\n\r\n\r\n  it('should be created successfully', function () {\r\n    expect('hello').toBeDefined();\r\n  });\r\n\r\n});\r\n\r\n```\r\n\r\nAny ideas? "},"comment":{"url":"https://api.github.com/repos/wardbell/bardjs/issues/comments/97055531","html_url":"https://github.com/wardbell/bardjs/issues/2#issuecomment-97055531","issue_url":"https://api.github.com/repos/wardbell/bardjs/issues/2","id":97055531,"user":{"login":"rodleviton","id":1480083,"avatar_url":"https://avatars.githubusercontent.com/u/1480083?v=3","gravatar_id":"","url":"https://api.github.com/users/rodleviton","html_url":"https://github.com/rodleviton","followers_url":"https://api.github.com/users/rodleviton/followers","following_url":"https://api.github.com/users/rodleviton/following{/other_user}","gists_url":"https://api.github.com/users/rodleviton/gists{/gist_id}","starred_url":"https://api.github.com/users/rodleviton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodleviton/subscriptions","organizations_url":"https://api.github.com/users/rodleviton/orgs","repos_url":"https://api.github.com/users/rodleviton/repos","events_url":"https://api.github.com/users/rodleviton/events{/privacy}","received_events_url":"https://api.github.com/users/rodleviton/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T13:12:06Z","updated_at":"2015-04-28T13:12:06Z","body":"I am getting a similar error. I am also using phantomJS:\r\n\r\n```\r\nbeforeEach(function() {\r\n        bard.appModule('myModule');\r\n        bard.inject(this, '$controller', '$log', '$q', '$rootScope');\r\n    });\r\n```\r\n\r\n`TypeError: 'undefined' is not a function (evaluating 'getCtxFromArgs.bind(this)')\r\n\t    at bardInject (/bower_components/bardjs/dist/bard.js:273)`\r\n\r\nAny help would be really appreciated."}}