Browse Source

Merge pull request #94 from Ontraport/master

feat: add context and allow for other elements besides img
pull/91/merge
Todd Motto 8 years ago committed by GitHub
parent
commit
74a96b31bd
  1. 4
      src/echo.js

4
src/echo.js

@ -70,8 +70,8 @@
} }
}; };
echo.render = function () { echo.render = function (context) {
var nodes = document.querySelectorAll('img[data-echo], [data-echo-background]'); var nodes = (context || document).querySelectorAll('[data-echo], [data-echo-background]');
var length = nodes.length; var length = nodes.length;
var src, elem; var src, elem;
var view = { var view = {

Loading…
Cancel
Save