Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallop is not a constructor #76

Closed
exdeniz opened this issue Oct 11, 2016 · 1 comment
Closed

Wallop is not a constructor #76

exdeniz opened this issue Oct 11, 2016 · 1 comment

Comments

@exdeniz
Copy link

exdeniz commented Oct 11, 2016

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
Copy link
Author

exdeniz commented Oct 11, 2016

Change code:

const slider = new Wallop(wallopEl)

and it's work.

@exdeniz exdeniz closed this as completed Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant