Can't get it to work in pure JS
See original GitHub issueimport * as arrive from 'arrive/src/arrive.js';
$(document).arrive('.smthing', () => { console.log('bla'); });
works document.arrive('.smthing', () => { console.log('bla'); });
doesn’t work
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Pure Js onclick element doesn't work - Stack Overflow
I'm having trouble when i run this code under greasemonkey the last position working and run function. var arry = []; arry =...
Read more >Handling common JavaScript problems - MDN Web Docs
Now we'll look at common cross-browser JavaScript problems and how to fix them. This includes information on using browser dev tools to track ......
Read more >Making your JavaScript Pure - A List Apart
For a function to be strictly pure, it has to only use variables supplied by it's input, it can't modify the variables it...
Read more >pure.js - Javascript Template Engine
We have been happily using pure.js since 2008 for our own web app, ... If the function returns true the item is kept,...
Read more >Pure Functions in JS: Avoiding Unwanted Problems
All in all, pure functions provide 3 major levels of benefits: You get fewer unexpected bugs, thus making your code a lot more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@narcolepticinsomniac when you are using arrow function you cannot use
this
because arrow functions does not allow bindingthis
. You can use the passed param as in the js fiddle.This seems like an issue with typescirpt type declaration so closing it.