That seems to silently fail when I try that.  Given the way ujs works with evaling snippets of javascript, I'm not sure requirejs can be utilised.

I'll have a go implementing it using the event approach which I imagine will be ok with requirejs.  It's a nicer approach anyway.