Browse Source

fix store

pull/25/head
Christian Fei 11 years ago
parent
commit
5ef1869e12
  1. 4
      src/echo.js

4
src/echo.js

@ -12,9 +12,11 @@ window.Echo = (function (window, document, undefined) {
var _pollImages = function () {
for (var i = 0, l = store.length; i<l; i++) {
var self = store[i];
if (_inView(self)) {
if ( self && _inView(self)) {
self.src = self.getAttribute('data-echo');
store.splice(i, 1);
l = store.length;
i--;
}
}
};

Loading…
Cancel
Save