thenikso / angular-inview

AngularJS directive to check if a DOM element is in the browser viewport.
http://thenikso.github.io/angular-inview/
MIT License
480 stars 112 forks source link

arrow functions not supported #148

Closed bezzad closed 5 years ago

bezzad commented 5 years ago

I have an angularjs project which created by Typescript 3 with target es5. In this version of javascript the arrow functions => has not been supported. like below codes:

map(e => el[0].addEventListener(e, handler, true));
MrXploder commented 5 years ago

I can make a pull-request changing the es6 arrow function for regular functions

thenikso commented 5 years ago

142 has been merged and released to npm as version 3.1.0!