I am using the list sorter which is causing the compatibility issue with ForEach function. _resetOtherWidgetsRendering: function() { var others = document.querySelectorAll('.listSorter .sortIcon:not(.sort-none)'); var self = this; others.forEach(function(el) { if (el === self.sortSpan) return; self._setSort(el, null); }); }, To overcome this I am thinking to use Polyfill, but not sure how to use in every click event.