On Mon, Apr 21, 2008 at 4:02 AM, bobjack <[EMAIL PROTECTED]> wrote: > > Hi Edward > > There is a problem with the onClick model for plugins, as described in the > Templates section of the leoPlugins. > > The onCreate method gets called every time *any* new commander is > created therefore the plugin controllers get recreated for *every* > commander *every* time a new commander is created.
I'm not sure whether this is a serious problem. Your solution works, as does keeping a module-level dictionary of controllers. There are several examples of this pattern, iirc. Perhaps some more documentation is needed, but I'd rather not change how events get generated unless absolutely required. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
