From: Michael M Slusarz Date: Fri, 17 Apr 2009 03:20:55 +0000 (-0600) Subject: Unnecessary assignment. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c82378fe0640d915e0ddbb572bd6ddfbbf57e062;p=horde.git Unnecessary assignment. --- diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index 1494a1473..dfbda6eb1 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -1876,8 +1876,6 @@ var DimpBase = { submbox = $(submboxid), ftype = ob.v ? (ob.co ? 'vcontainer' : 'virtual') : (ob.co ? 'container' : (ob.s ? 'special' : 'folder')); - li = new Element('LI', { className: 'folder', id: fid, l: label, mbox: mbox, ftype: ftype }); - div = new Element('DIV', { className: ob.cl || 'base', id: fid + '_div' }); if (ob.i) { div.setStyle({ backgroundImage: 'url("' + ob.i + '")' }); @@ -1886,7 +1884,7 @@ var DimpBase = { div.writeAttribute({ className: 'exp' }); } - li.insert(div).insert(new Element('A', { id: fid + '_label', title: label }).insert(label)); + li = new Element('LI', { className: 'folder', id: fid, l: label, mbox: mbox, ftype: ftype }).insert(div).insert(new Element('A', { id: fid + '_label', title: label }).insert(label)); // Now walk through the parent