Skip to content

Commit

Permalink
convert changes to coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah committed Aug 15, 2014
1 parent 140ff40 commit 7a9e1d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/wow.js

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

4 changes: 2 additions & 2 deletions dist/wow.min.js

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

4 changes: 2 additions & 2 deletions src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class @WOW

start: =>
@stopped = false
@boxes = (box for box in @element.getElementsByClassName(@config.boxClass))
@boxes = (box for box in @element.querySelectorAll(".#{@config.boxClass}"))
@all = (box for box in @boxes)
if @boxes.length
if @disabled()
Expand Down Expand Up @@ -103,7 +103,7 @@ class @WOW
element ?= @element
return unless element.nodeType is 1
element = element.parentNode or element
for box in element.getElementsByClassName(@config.boxClass)
for box in element.querySelectorAll(".#{@config.boxClass}")
unless box in @all
@applyStyle(box, true)
@boxes.push box
Expand Down

0 comments on commit 7a9e1d9

Please sign in to comment.