From 51dabfa0381adf2625ab718b0aa209bd3a7e4a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20L=C3=B3pez=20Guevara?= Date: Wed, 14 Sep 2016 08:23:23 -0300 Subject: [PATCH 1/2] FIX "Uncaught TypeError: Property '4' of object [object Array] is not a function" --- jquery.appear.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jquery.appear.js b/jquery.appear.js index 1d14d05..2a14167 100644 --- a/jquery.appear.js +++ b/jquery.appear.js @@ -124,7 +124,11 @@ //process the queue checkAll: function() { var length = $.fn.appear.checks.length; - if (length > 0) while (length--) ($.fn.appear.checks[length])(); + if (length > 0) { + while (length--) { + ($.fn.appear.checks[length])(); + } + } }, //check the queue asynchronously From 0a64f05d0114f011baac3a2f8a5106a344edb9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20L=C3=B3pez=20Guevara?= Date: Thu, 29 Sep 2016 15:32:13 -0300 Subject: [PATCH 2/2] fix - $.fn.appear.checks[length] is not a function $.fn.appear.checks[length] is not a function --- jquery.appear.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.appear.js b/jquery.appear.js index 2a14167..450159d 100644 --- a/jquery.appear.js +++ b/jquery.appear.js @@ -126,7 +126,9 @@ var length = $.fn.appear.checks.length; if (length > 0) { while (length--) { - ($.fn.appear.checks[length])(); + try { + ($.fn.appear.checks[length])(); + } catch(e) { } } } },