Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: $.fn.appear.checks[length] is not a function #6

Open
StevenWillett opened this issue Jan 9, 2018 · 1 comment

Comments

@StevenWillett
Copy link

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
Copy link

dsturm commented Jul 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants