Skip to content

Commit

Permalink
pass args to shouldAnimate
Browse files Browse the repository at this point in the history
  • Loading branch information
schlosser committed Feb 10, 2016
1 parent da00c36 commit b1506e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pageanimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
// Only animate if we are not in another animation, we should animate, and
// we're not just supposed to refresh the page.
if (!this.currentAnimation &&
this.cb.shouldAnimate() &&
this.cb.shouldAnimate(anchor, path) &&
(this.settings.animateLinksToSelf || this.path !== window.location.pathname)) {
for (var urlRegex in this.animations) {
if (this.animations.hasOwnProperty(urlRegex) && this.animations[urlRegex].regex.test(path)) {
Expand Down
2 changes: 1 addition & 1 deletion src/pageanimation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1506e3

Please sign in to comment.