This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
small refactor to simplify newActiveIndex tracking
- Loading branch information
20dce2c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the newActiveIndex found by the $.each() loop is 0, then urlHistory.activeIndex wouldn't change to that. The null is significant for distinguishing between a "not found" result and a index = 0 result (which is still a perfectly valid result).