diff --git a/bower.json b/bower.json deleted file mode 100644 index 82bd611..0000000 --- a/bower.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "protonet/jquery.inview", - "version": "1.0.0", - "main": "jquery.inview.js", - "description": "jQuery event that is fired as soon as an element appears in the user's viewport." -} \ No newline at end of file diff --git a/jquery.inview.js b/jquery.inview.js index 56815f0..b7b781a 100644 --- a/jquery.inview.js +++ b/jquery.inview.js @@ -76,8 +76,8 @@ elementsLength = $elements.length; if (elementsLength) { - viewportSize = viewportSize || getViewportSize(); - viewportOffset = viewportOffset || getViewportOffset(); + viewportSize = getViewportSize(); + viewportOffset = getViewportOffset(); for (; ir;r++)if(t.contains(f,l[r])){var a,c,p,s=t(l[r]),u={height:s.height(),width:s.width()},g=s.offset(),v=s.data("inview");if(!h||!o)return;g.top+u.height>h.top&&g.toph.left&&g.leftg.left?"right":h.left+o.widthg.top?"bottom":h.top+o.heighti;i++)if(a.contains(k,g[i][0])){var j,l,m,n=a(g[i]),o={height:n.height(),width:n.width()},p=n.offset(),q=n.data("inview");if(!f||!e)return;p.top+o.height>f.top&&p.topf.left&&p.leftp.left?"right":f.left+e.widthp.top?"bottom":f.top+e.height", + "license": "ISC", + "bugs": { + "url": "https://github.com/mage3k/jquery.inview/issues" + }, + "homepage": "https://github.com/mage3k/jquery.inview" +}