arrive: Can't get it to work in pure JS
import * as arrive from 'arrive/src/arrive.js';
$(document).arrive('.smthing', () => { console.log('bla'); }); works document.arrive('.smthing', () => { console.log('bla'); }); doesn’t work
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (8 by maintainers)
@narcolepticinsomniac when you are using arrow function you cannot use
thisbecause arrow functions does not allow bindingthis. You can use the passed param as in the js fiddle.