2 Replies Latest reply on Dec 8, 2009 2:43 AM by DawMatt

    Is it possible to avoid using anonymous functions in certain calls?

    DawMatt Level 3

      Hi All,

       

      In my plugin code I have some calls similar to the following:

       

              LrTasks.startAsyncTaskWithoutErrorHandler(function ()
                  -- do stuff here
              end)

       

      Use of anonymous functions to pass parameters to the SDK is straight out of the API reference and SDK documentation.  The code executes fine, but it can break the ability of some text editors to maintain a function list for quick navigation around your code.

       

      Does anyone know of a way to pass named functions or anonymous code blocks (rather than functions) to the calls instead?

       

      Thanks,

      Matt