-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support for require.js #527
Conversation
Just in case, this is Require.js. |
failed. you should use |
Oh thanks! Is there some way to edit the merge request? Or should I start a new one? |
@trusktr you'd better start a new one ;) |
Fwiw, you just have to fix this in a new commit, then push it in the same branch. The pull request will be updated automatically. If you really want to be clean, you can run |
Oh cool ! Agreed |
@trusktr what's happening with this? |
@trusktr Note that referencing an undeclared variable directly gives a |
a4f11d5
to
786a8ca
Compare
There we go. |
bump :) |
In a RequireJS environment `this` doesn't refer to the `window` object, so async doesn't work there.
I'm using Require.js, so
this
doesn't refer to thewindow
object, so async didn't work until I made this change.