[jQuery] IE crash

[jQuery] IE crash

I just checked for leaks and the memory usage has not
gone up, if anything it went down 3mbs while using it.
I couldn't get the browser to crash again this time,
but like I said before, it is very intermittent. I
found another problem with it that might be a related
problem. In IE only, this part of the code doesn't
work:
$(this).addClass("closeBoxButton").removeClass("openBoxButton");
Strangely enough, the first line just like it does
work:
$(this).addClass("openBoxButton").removeClass("closeBoxButton");
So, basically, after the first click in IE, the icon
sticks after the first toggle. Just like the crashing
issue, I don't remember seeing this issue with an
older version of jQuery.
Here is the full code again in case someone missed it
in the first post:
$("div.secTitleContainer")
    .css("padding-left","20px")
    .prepend('<a href="javascript:void(0);"
class="closeBoxButton"></a>')
    .find("a")
    .toggle(function(){
        this.blur();
    
$(this).addClass("openBoxButton").removeClass("closeBoxButton");
    
$("../../../../div:last",this).slideUp("fast",{onComplete:function(){
            this.style.height = 'auto';
        }});
    },function(){
        this.blur();
    
$(this).addClass("closeBoxButton").removeClass("openBoxButton");
    
$("../../../../div:last",this).slideDown("fast",{onComplete:function(){
            this.style.height = 'auto';
        }});
    });
Thanks again,
- Christian Gove







































    • Topic Participants

    • cuzog