Created
November 8, 2013 19:48
-
-
Save kruppel/7376551 to your computer and use it in GitHub Desktop.
Discount Bubble Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var el = document.activeElement; | |
function bubbleCheck(element) { | |
var checking = element; | |
checking.addEventListener('click', function(e) { console.log(checking); }, false); | |
} | |
while (el = el.parentNode) { bubbleCheck(el); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment