peduarte / wallop

:no_entry: currently unmaintained :no_entry: A minimal JS library for showing & hiding things
1.1k stars 79 forks source link

Wallop is not a constructor #76

Closed exdeniz closed 8 years ago

exdeniz commented 8 years ago

I try init Wallop:

import Wallop from 'Wallop'

document.addEventListener('DOMContentLoaded', function () {
  const wallopEl = document.querySelector('.Wallop')
  console.log(wallopEl)
  const Wallop = new Wallop(wallopEl)
})

And receive error Uncaught TypeError: Wallop is not a constructor

exdeniz commented 8 years ago

Change code:

const slider = new Wallop(wallopEl)

and it's work.