im having trouble sorting out why my clones are attaching multiple events in
IE and not firefox. they are only supposed to attach their contextualized
event (thus the each loop) but in IE they all get attached and fire off one
after another.

the code:

$('rowNode', xml.responseXML).each( function(i){
                var clone = $($(cloneTemplate).clone().get(0));
                $('#target').append(clone );
                
                clone .click(function() {
                        $(this).css({border:'orange '+(i+3)+'px solid'});
                });
                
                var clone = null;
        });

so instead of each clone getting its own specific thickness, it gets the
thickness of the final i, because each iterated event is added to each
clone.

I tried using null at the end to toss away the reference to
articleRowCloneHolder but it doesnt appear to take. any suggestions? this
error sucks : )

will
-- 
View this message in context: 
http://www.nabble.com/multiple-events-attaching-to-cloned-elements-in-IE-tf2911495.html#a8134962
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to