Browse Source

removed img from selector data-echo

Now echo can be used for any element that supports the src attribute
pull/94/head
Jesse Baird 9 years ago
parent
commit
341f5d5a4e
  1. 2
      src/echo.js

2
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 = {

Loading…
Cancel
Save