var triggers = document.getElementsByClassName('trigger');
            for (x in triggers) {
              cur = triggers[x]
              if (cur.offsetHeight < 135) {
                console.log('hiding we');
                // prevents it from propagating to parentNode and changing it
                e.preventDefault();
                $(cur).find('.trigger-we').hide();
                console.log('icon should be hidden')
              }
              else {
                e.preventDefault();
                // $(cur).find('.trigger-icon').show();
                $(cur).find('.trigger-we').show();
              }
            }
          });
I have the following code for hiding a specific element inside a parent div depending on the height of the parent div when the window gets resized. There are multiple parent divs under the class "trigger" and I iterate through each of them (via the for loop) and check its offset height (display height) and if its less than some threshold, I hide a specific div child of that parent div, but they're not getting hidden, anyone know why?
