Commit 4d34952e authored by JC Brand's avatar JC Brand

Consider elements with class `hidden` as invisible

parent 48c806c9
...@@ -655,6 +655,9 @@ ...@@ -655,6 +655,9 @@
} }
u.isVisible = function (el) { u.isVisible = function (el) {
if (u.hasClass('hidden', el)) {
return false;
}
// XXX: Taken from jQuery's "visible" implementation // XXX: Taken from jQuery's "visible" implementation
return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0; return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment