Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Uncaught TypeError: this.handlers[t][n] is not a function in-view.min.js:6 #81

Closed
dennisbaum opened this issue Jan 11, 2018 · 1 comment

Comments

@dennisbaum
Copy link

Hello and tnx for this sweet Plugin,
i use it with yarn, webpack and babel.

"jquery": "^3.2.1",
"in-view": "^0.6.1",
import $ from 'jquery';
import inView from 'in-view';
inView('.inview-white').on('enter', console.log('inview-white enter'));

the first time the event is fired and log to the console, after that i get the following error, every time the event occurs...
maybe someone have an idea, what i am doing wrong?
tnx!

image

@dennisbaum
Copy link
Author

inView('.inview-white').on('enter', el => console.log('inview-white enter'));

works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant