From eaa47a88376123553fdc269708deb98376a52284 Mon Sep 17 00:00:00 2001 From: Pablo Martinez Date: Fri, 9 Oct 2015 21:45:48 -0500 Subject: [PATCH] Update jquery.visible.js Add a check if the element or the parent is display none --- jquery.visible.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.visible.js b/jquery.visible.js index 745956a..8a054b3 100644 --- a/jquery.visible.js +++ b/jquery.visible.js @@ -16,6 +16,9 @@ if (this.length < 1) return; + if (this.is(":hidden")) + return false; + var $t = this.length > 1 ? this.eq(0) : this, t = $t.get(0), vpWidth = $w.width(),