Skip to content

Commit

Permalink
bind resetAnimation (this should fix matthieua#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah committed Apr 7, 2015
1 parent 6e3b8b1 commit 82e177f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/wow.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
}
this.scrollCallback = bind(this.scrollCallback, this);
this.scrollHandler = bind(this.scrollHandler, this);
this.resetAnimation = bind(this.resetAnimation, this);
this.start = bind(this.start, this);
this.scrolled = true;
this.config = this.util().extend(options, this.defaults);
Expand Down
2 changes: 1 addition & 1 deletion dist/wow.min.js

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

2 changes: 1 addition & 1 deletion src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class @WOW
resetStyle: ->
box.style.visibility = 'visible' for box in @boxes

resetAnimation: (event) ->
resetAnimation: (event) =>
if event.type.toLowerCase().indexOf('animationend') >= 0
target = event.target || event.srcElement
target.className = target.className.replace(@config.animateClass, '').trim()
Expand Down

0 comments on commit 82e177f

Please sign in to comment.