[dokuwiki] Re: Patch: Arbitrary Button types in JS toolbar

On Thu, 23 Aug 2007 15:59:55 +0200
"Gabriel Birke" <Gabriel.Birke@xxxxxxxxx> wrote:

> Hello,
> 
> This is my patch for creating toolbar buttons with arbitrary button
> types,

patch applied

> There is one thing I would like to discuss:
> 
> Using closures instead of eval calls in the addBtnAction functions
> would make the code shorter, more readable and bug-tracking easier.

I had some problems making closures work inside a loop back when I
wrote this code. A working patch using closures instead would be great.

Andi

-- 
http://www.splitbrain.org

Other related posts: