Skip to content

Commit

Permalink
Remove ES6 feature arrow function
Browse files Browse the repository at this point in the history
Was breaking minification
  • Loading branch information
NickColley committed Jan 21, 2019
1 parent c7065fd commit 7251d6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ var visiblity = 'invisible'
var intersectionRatio = 0

// Create new IntersectionObserver
var io = new window.IntersectionObserver(entries => {
var io = new window.IntersectionObserver(function (entries) {
// Available data when an intersection happens
console.log(entries)
// Element enters the viewport
if (entries[0].intersectionRatio !== 0) {
visiblity = 'visible'
Expand Down

0 comments on commit 7251d6c

Please sign in to comment.