Skip to content

Commit

Permalink
Merge pull request #78 from vianetz/remove-prototype
Browse files Browse the repository at this point in the history
Remove Prototype dependency
  • Loading branch information
Schrank authored Mar 23, 2023
2 parents df01185 + 7fc2040 commit c6893f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/hackathon/HoneySpam/honeyspam.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
* @link http://www.magento-hackathon.de/
*/

document.observe('dom:loaded', function () {
var mhhsInput = $$('.mhhs-input');
if (mhhsInput.length > 0) {
mhhsInput.each(Element.hide);
}
document.addEventListener('DOMContentLoaded', function(event) {
document.querySelectorAll('.mhhs-input').forEach(e => e.style.display = 'none');
});

0 comments on commit c6893f8

Please sign in to comment.