Skip to content
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

add BehaveHooks when using AMD #20

Open
posativ opened this issue Oct 3, 2013 · 1 comment
Open

add BehaveHooks when using AMD #20

posativ opened this issue Oct 3, 2013 · 1 comment

Comments

@posativ
Copy link

posativ commented Oct 3, 2013

Is it possible to add hooks, when the module is loaded via require.js? A quick glance at the source code lets me think, it is not possible atm.

@pavel
Copy link

pavel commented Oct 17, 2013

At least on the recent version, which is 1.5, when you use Behave.js with AMD, it still creates global variables Behave and BehaveHooks, so you can add hooks via window.BehaveHooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants