Uncaught TypeError: $.fn.appear.checks[length] is not a function
StevenWillett opened this issue · 1 comments
StevenWillett commented
The error is showing on line 127 for me, but its this code block:
Original (In master Branch, lines 124-128)
//process the queue
checkAll: function() {
var length = $.fn.appear.checks.length;
if (length > 0) while (length--) ($.fn.appear.checks[length])();
},
Updated this block to use:
//process the queue
checkAll: function() {
var length = $.fn.appear.checks.length;
if (length > 0) while (length--) ($.fn.appear.checks[length])();
try
{
($.fn.appear.checks[length])();
}
catch(e)
{
}
},
but get the same issue even when trying to catch the issue.
Any pointers to a possible solution?
dsturm commented
A little late, but this should work:
//process the queue
checkAll: function() {
var length = $.fn.appear.checks.length;
if (length > 0) {
while (length--) {
try {
($.fn.appear.checks[length])();
} catch (e) {}
}
}
},
@StevenWillett , you didn't removed the possibly "undefined" callback before the try.