Behave.js icon indicating copy to clipboard operation
Behave.js copied to clipboard

add BehaveHooks when using AMD

Open posativ opened this issue 11 years ago • 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.

posativ avatar Oct 03 '13 12:10 posativ

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.

pavel avatar Oct 17 '13 10:10 pavel