3 ms·
Put your domo code into a function that takes data and returns a DOM object. BAM, there's your template. Your JavaScript code can only have one global object,
by jedschmidt 14y ago
Put your domo code into a function that takes data and returns a DOM object. BAM, there's your template.
Your JavaScript code can only have one global object, I don't see a reason to pass it in instead of finding it for you.