[jQuery] Dean Edwards Packer & Interface accordion.js...
I had to do some customizing of the Interface code and in the process of
re-packing the source code with Dean Edwards latest Packer code, I came
across a problem in the accordion.js code.
When packing the code the el.accordionCfg.currentPanel is undefined when
first initialized. The problem appears to be related to something the Base62
encoding is doing, but I thought I'd share my fix.
What I did is add a check for the el.accordionCfg.currentPanel and if it's
undefined, use the value of 0. Here's a code snippet. I just thought I'd
share the fix in case anyone tries packing the code up like I did.
.bind(
'click',
function(e)
{
// fix for packer
el.accordionCfg.currentPanel =
el.accordionCfg.currentPanel||0;
if (el.accordionCfg.currentPanel == this.accordionPos)
return;
// rest of code
-Dan