Uncaught TypeError: Cannot read property 'top' of undefined
-
Hello there!
I’ve been using your plugin for awhile now, it works, but it’s also throwing a bunch of errors on our page.
Primarily this
“Uncaught TypeError. Cannot read property ‘top’ of undefined (repeated 150 times)” (the number increases every time the page is scrolled through.
The error occurs here
$(function() { var slidebox = $('#slidebox'); if (slidebox) { $(window).scroll(function(){ var distanceTop = $('#last').offset().top - $(window).height();
Whatever that “top” is on the last line of the script, is not functioning properly – let me know how to fix it, thank you!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Uncaught TypeError: Cannot read property 'top' of undefined’ is closed to new replies.