vvo / in-viewport

Get a callback when any element becomes visible in a viewport (body or custom viewport)
MIT License
276 stars 24 forks source link

Exports empty objects #5

Closed mikemaccana closed 9 years ago

mikemaccana commented 9 years ago

First things first: thanks for a great module!

A small, easily fixable bug: you'd normally load an npm module via:

var inViewport = require('in-viewport');

However this module returns '{}'

You can fix this with a:

module.exports = inViewport
vvo commented 9 years ago

This is now fixed, the library is only commonJS, you can find a standalone build tought.