diff --git a/src/compatibility/document/querySelectorAll.js b/src/compatibility/document/querySelectorAll.js index 4fbbee9..7ccadc0 100644 --- a/src/compatibility/document/querySelectorAll.js +++ b/src/compatibility/document/querySelectorAll.js @@ -8,5 +8,5 @@ if (!document.querySelectorAll && document.createStyleSheet) { } } style.removeRule(0); return result; - } + }; } \ No newline at end of file diff --git a/src/echo.js b/src/echo.js index 20b2510..5da6471 100644 --- a/src/echo.js +++ b/src/echo.js @@ -11,7 +11,7 @@ window.Echo = (function (window, document, undefined) { }; var _pollImages = function () { - for (var i = 0; i < store.length; i++) { + for (var i = store.length - 1; i >= 0; i--) { var self = store[i], array = Array.prototype; if (_inView(self)) { self.src = self.getAttribute('data-echo'); @@ -32,4 +32,4 @@ window.Echo = (function (window, document, undefined) { init: init }; -})(window, document); +})(window, document); \ No newline at end of file