So, I'm using RequireJS in my project, and when I use bind this in a require, it generate Uncaught Error: Mismatched anonymous, like so:
require(['registerHover/view'], function (RegisterHover) {
this.loginHover = new RegisterHover();
}.bind(this));
it is inside a class, how can I pass this context inside the require function without generating Mismatched anonymous? I guess it's because bind return a new function and RequireJS considers an anonymous function, when I don't use bind (when I don't need this context), it works just fine.