Skip to content

Replaced native DOM calls with wrapper functions. Also added the querySelectorAll wrapper function

Pun Waiwitlikhit requested to merge punwai/CarbonFootprint:refactor into master

Explanation in the title, I have done this for the first five of the trains and only used the wrapper functions at appropriate moments. (Not in If statements and other situations when it is checking whether an element exists) I have created also created a querySelectorAll wrapper function for future uses. It works at the moment for me.

Merge request reports