From 341f5d5a4ea7890902dbde66a2fe18b4ae9cb12d Mon Sep 17 00:00:00 2001 From: Jesse Baird Date: Fri, 18 Sep 2015 12:26:58 -0500 Subject: [PATCH] removed img from selector data-echo Now echo can be used for any element that supports the src attribute --- src/echo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.js b/src/echo.js index f307e8f..06f015a 100644 --- a/src/echo.js +++ b/src/echo.js @@ -71,7 +71,7 @@ }; echo.render = function () { - var nodes = document.querySelectorAll('img[data-echo], [data-echo-background]'); + var nodes = document.querySelectorAll('[data-echo], [data-echo-background]'); var length = nodes.length; var src, elem; var view = {