add BehaveHooks when using AMD
Opened this issue · 1 comments
posativ commented
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 commented
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
.