Browse Source

Save 2 bytes

pull/4/head v1.2.0
Todd Motto 11 years ago
parent
commit
3b323bc66e
  1. 2
      dist/echo.js
  2. 2
      src/echo.js

2
dist/echo.js vendored

@ -13,7 +13,7 @@ window.Echo = (function (window, document, undefined) {
var _inView = function (img) { var _inView = function (img) {
var coords = img.getBoundingClientRect(); var coords = img.getBoundingClientRect();
return ((coords.top >= 0 && coords.left >= 0 && coords.top) <= (window.innerHeight || document.documentElement.clientHeight)); return (coords.top >= 0 && coords.left >= 0 && coords.top) <= (window.innerHeight || document.documentElement.clientHeight);
}; };
var _pollImages = function () { var _pollImages = function () {

2
src/echo.js

@ -6,7 +6,7 @@ window.Echo = (function (window, document, undefined) {
var _inView = function (img) { var _inView = function (img) {
var coords = img.getBoundingClientRect(); var coords = img.getBoundingClientRect();
return ((coords.top >= 0 && coords.left >= 0 && coords.top) <= (window.innerHeight || document.documentElement.clientHeight)); return (coords.top >= 0 && coords.left >= 0 && coords.top) <= (window.innerHeight || document.documentElement.clientHeight);
}; };
var _pollImages = function () { var _pollImages = function () {

Loading…
Cancel
Save