Internet Explorer 8 choking on function call (JavaScript)
<p>I have this line in a function handling click events. It works in Firefox, but not IE8 and I don't see how to create a workaround. (Jquery answers welcome!). </p>

<p>n.b I cannot use the this keyword as in context it will be useless.</p>

<pre><code>elementsList[i].previousSibling.lastChild.addEventListener("click", (function(el){
            return function(){
                 toggle(el)
             };
       })(elementsList[i]),false); 
</code></pre>

<p>edit</p>

<p>To answer comments</p>

<p>elementsList is an array containing various nodes such as divs and p tags.</p>
