jakiestfu/Behave.js

add BehaveHooks when using AMD

Opened this issue · 1 comments

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.