How to get click on parent tag if I click on any child, grandchild (and deeper) in document.body.addEventListener

I need to apply the events delegation approach in my script.js. So, I need to catch all ‘click’ events on the body tag. It cannot be changed. I use: document.body.addEventListener(‘click’, function(event) { … // here I catch clicks on different elements }, true); I have a parent block and unknown amount of internal nested blocks,…

Details

undefined method `plain_specs’ for #

I have made a pull of a project that I have in my work and when I tried to run rails db:migrate, the terminal request to install “Bundler 2” so I do it. Now, when I tried to do rails db:migrate I have the following error: /home/acartesc/.rvm/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/gems/rubygems-bundler-1.4.5/lib/rubygems-bundler/noexec.rb:84:in `setup’: undefined method `plain_specs’ for #<Bundler::RubygemsIntegration:0x00005633f09a9000> (NoMethodError) from…

Details