- From: Robin Berjon <robin@w3.org>
- Date: Mon, 23 Mar 2015 13:35:33 +0100
- To: Shane McCarron <shane@aptest.com>
- CC: "spec-prod@w3.org Prod" <spec-prod@w3.org>
On 23/03/2015 13:27 , Shane McCarron wrote: > A quick look at the code makes me think it would work pretty much at > any moment, at least after the processing has started. So yeah, > end-all seems like as good a place as any. > > > Are you suggesting that calling define from within an Event processor > would work? I guess I hadn't tried that. Yeah, I'd try something like that. I can think of no reason that define() would not be defined (heh). Don't call define() inside the handler, just have (in your own script, loaded after ReSpec — and making sure ReSpec isn't loaded async): define(["core/ui"], function (ui) { ui.addCommand("Do Stuff", "ui/stuff-doer", "Ctrl+Shift+Alt+D"); }); I reckon that's enough. -- Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 23 March 2015 12:35:37 UTC