Browse Source

added context argument to render

allows only loading of elements in a container
pull/94/head
Jesse Baird 9 years ago
parent
commit
e17db0f709
  1. 4
      src/echo.js

4
src/echo.js

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

Loading…
Cancel
Save