From 8743bff34f544b37149d4286ca1e999e82adb60d Mon Sep 17 00:00:00 2001 From: Todd Motto Date: Sun, 17 Nov 2013 17:08:44 +0000 Subject: [PATCH] IE8 Support --- dist/echo.js | 4 ++-- dist/echo.min.js | 2 +- src/echo.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/echo.js b/dist/echo.js index 0b3a1d8..5eadf57 100644 --- a/dist/echo.js +++ b/dist/echo.js @@ -21,8 +21,8 @@ window.Echo = (function (window, document, undefined) { var self = store[i]; if (_inView(self)) { self.src = self.getAttribute('data-echo'); - if ([].indexOf && store.indexOf(self) !== -1) { - store.splice(i, 1); + if ([].indexOf && [].slice.call(store).indexOf(self) !== -1) { + [].slice.call(store).splice(i, 1); } } } diff --git a/dist/echo.min.js b/dist/echo.min.js index 72c154d..f7d7a59 100644 --- a/dist/echo.min.js +++ b/dist/echo.min.js @@ -5,4 +5,4 @@ * by Todd Motto: http://toddmotto.com * Copyright. MIT licensed. */ -window.Echo=function(a,b){"use strict";var c,d=function(c){var d=c.getBoundingClientRect();return(d.top>=0&&d.left>=0&&d.top)<=(a.innerHeight||b.documentElement.clientHeight)},e=function(){for(var a=0;a=0&&d.left>=0&&d.top)<=(a.innerHeight||b.documentElement.clientHeight)},e=function(){for(var a=0;a