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
// Logs all calls to preventDefault / stopPropagation in an user-friendly way | |
if ( process.env.NODE_ENV !== "production" ) { | |
(function monkeyPatchEventMethods() { | |
const logEventMethodCall = (event,methodName) => { | |
const MinimumMeaningfulSelectors = 3; // how much meaningful items we want in log message | |
const target = event.target; | |
const selector = (function computeSelector() { |