Behave.js
Behave.js copied to clipboard
add BehaveHooks when using AMD
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.
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
.