Closed lodnert closed 9 years ago
I am getting a similar error. I am also using phantomJS:
beforeEach(function() {
bard.appModule('myModule');
bard.inject(this, '$controller', '$log', '$q', '$rootScope');
});
TypeError: 'undefined' is not a function (evaluating 'getCtxFromArgs.bind(this)') at bardInject (/bower_components/bardjs/dist/bard.js:273)
Any help would be really appreciated.
@lodnert I have just found the solution. Phantom JS does not support Function.prototype.bind so you will need a polyfill. @wardbell has made this available here
Ah, awesome. I will try it out later today. Thanks!
I think I should just fold this into bard so that no one encounters it again.
That's why I am reopening this issue.
Sounds great, I was actually coming back here to suggest something like that.
Done. See bardjs v.0.1.1
Hi!
I 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:
Here is the spec-file.
Any ideas?