Skip to content

Commit

Permalink
align defaults, use ? instead of the type assertion, default to null
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Oláh committed Aug 19, 2015
1 parent f9ea4b6 commit d2146f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ getComputedStyleRX = /(\-([a-z]){1})/g

class @WOW
defaults:
boxClass: 'wow'
animateClass: 'animated'
offset: 0
mobile: true
live: true
callback: null
scrollContainer: undefined
boxClass: 'wow'
animateClass: 'animated'
offset: 0
mobile: true
live: true
callback: null
scrollContainer: null

constructor: (options = {}) ->
@scrolled = true
@config = @util().extend(options, @defaults)
if typeof options.scrollContainer is 'string'
if options.scrollContainer?
@config.scrollContainer = document.querySelector(options.scrollContainer)
# Map of elements to animation names:
@animationNameCache = new WeakMap()
Expand Down

0 comments on commit d2146f2

Please sign in to comment.