From 61092f9508ce2d23d73963072092f80b84a5d233 Mon Sep 17 00:00:00 2001 From: Christian Fei Date: Mon, 30 Dec 2013 15:16:45 +0100 Subject: [PATCH] incremental for loop --- src/echo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.js b/src/echo.js index 9f15708..1c3452c 100644 --- a/src/echo.js +++ b/src/echo.js @@ -10,7 +10,7 @@ window.Echo = (function (window, document, undefined) { }; var _pollImages = function () { - for (var i = store.length; i--;) { + for (var i = 0, l = store.length; i < l; i++;) { var self = store[i]; if (_inView(self)) { self.src = self.getAttribute('data-echo');