Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Website : http://mynameismatthieu.com/wow
#


class Util
extend: (custom, defaults) ->
custom[key] ?= value for key, value of defaults
Expand Down Expand Up @@ -99,7 +98,7 @@ getComputedStyle = @getComputedStyle or \
@
getComputedStyleRX = /(\-([a-z]){1})/g

class @WOW
class WOW
defaults:
boxClass: 'wow'
animateClass: 'animated'
Expand Down Expand Up @@ -288,3 +287,13 @@ class @WOW

disabled: ->
not @config.mobile and @util().isMobile(navigator.userAgent)

umd = (factory) ->
if typeof exports is 'object'
module.exports = factory()
else if typeof define is 'function' and define.amd
define([], factory)
else
@WOW = factory()

umd -> WOW