update shared components

This commit is contained in:
Luke Pulverenti 2016-08-28 14:59:14 -04:00
parent f2e02b7c2d
commit feb3d5ae05
12 changed files with 76 additions and 110 deletions

View file

@ -10,7 +10,7 @@
* the user visible viewport of a web browser.
* only accounts for vertical position, not horizontal.
*/
function visibleInViewport(elem, partial, thresholdX, thresholdY, windowSize) {
function visibleInViewport(elem, partial, thresholdX, thresholdY) {
thresholdX = thresholdX || 0;
thresholdY = thresholdY || 0;
@ -19,7 +19,7 @@
return true;
}
windowSize = windowSize || dom.getWindowSize();
var windowSize = dom.getWindowSize();
var vpWidth = windowSize.innerWidth,
vpHeight = windowSize.innerHeight;