Expert Support
Blog

jQuery slideUp stops working in 1.3.2

Avaya

jQuery slideUp stops working in 1.3.2

After testing across a couple browsers and having some of them work. I figured there must be a bug in jquery. Turns out I was correct. Here’s the quick fix. Please make sure to backup your .js files before making any changes to them. Use these updates at your own risk. I will post the related jquery references at the end of this post. Make sure to check which version of jquery you’re using first. Generally, there is the normal version and min version. I do not have the fix for the compact version listed.

For the “normal” version:

Find the code:
return elem.offsetWidth === 0 || elem.offsetHeight === 0

Change to:
return elem.offsetWidth === 0 && elem.offsetHeight === 0

For the “min” version:

Find the code:
return T.offsetWidth===0||T.offsetHeight===0

Change to:
return T.offsetWidth===0&&T.offsetHeight===0

This is the ticket regarding the issue:
http://dev.jquery.com/ticket/4374

And here’s the fix for it:
http://dev.jquery.com/changeset/6282

That’s it!

Tags: , ,

You can leave a response, or trackback from your own site.

More here - 

jQuery slideUp stops working in 1.3.2

Tags: , , , , , , , ,
Written by guest