FriendlyEats.prototype.initTemplates = function()

in scripts/FriendlyEats.View.js [18:25]


FriendlyEats.prototype.initTemplates = function() {
  this.templates = {};

  var that = this;
  document.querySelectorAll('.template').forEach(function(el) {
    that.templates[el.getAttribute('id')] = el;
  });
};