Passing in 'this' into the top level closure in arrive.js assumes that it is bound to the browser 'window' object.
It is safer to pass in 'window' object directly because 'this' is not guaranteed to be bound to the window object when arrive.js is used in build tools like gulp, webpack, etc...
Passing in 'this' into the top level closure in arrive.js assumes that it is bound to the browser 'window' object.
It is safer to pass in 'window' object directly because 'this' is not guaranteed to be bound to the window object when arrive.js is used in build tools like gulp, webpack, etc...