- From: Shane McCarron <shane@aptest.com>
- Date: Mon, 23 Mar 2015 07:53:01 -0500
- To: Robin Berjon <robin@w3.org>
- Cc: "spec-prod@w3.org Prod" <spec-prod@w3.org>
Received on Monday, 23 March 2015 12:53:28 UTC
On Mon, Mar 23, 2015 at 7:35 AM, Robin Berjon <robin@w3.org> wrote: > 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. > > Huh. I will try that. FYI what I did to get a jump start was I added a URI parameter handler into the end-all event handler. It sees a query string of 'saveRoles' and then pops up a save dialog. Silly, but it got me over the hump. -- Shane McCarron Managing Director, Applied Testing and Technology, Inc.
Received on Monday, 23 March 2015 12:53:28 UTC