Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhunter committed May 6, 2020
1 parent 2535155 commit da92032
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/feature/gumshoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@
* @return {Boolean} If true, use the last item
*/
var useLastItem = function (item, settings) {
if (isAtBottom() && isInView(item.content, settings, true)) return true;
if (isAtBottom() && item && isInView(item.content, settings, true)) {
return true;
}
return false;
};

Expand All @@ -211,7 +213,7 @@

/**
* Return the element for the active class toggle
* @param {Node} nav The navigation eleemnt
* @param {Node} nav The navigation element
* @param {Object} settings The settings for this instantiation
*/
var getNodeToActivate = function (nav, settings) {
Expand Down

0 comments on commit da92032

Please sign in to comment.