Browse Source

type error: fix

pull/9/head
Morozov Andrew 11 years ago
parent
commit
d50da5edc6
  1. 6
      src/echo.js

6
src/echo.js

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

Loading…
Cancel
Save