Remove jQueryNotDelegatedEvents offenders and send user to filtered timeline
This commit is contained in:
@@ -25,7 +25,6 @@ var jsExecutionTransformer = function() {
|
||||
metrics.jQueryNotDelegatedEvents = 0;
|
||||
|
||||
offenders.jQueryFunctionsUsed = [];
|
||||
offenders.jQueryNotDelegatedEvents = [];
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -40,11 +39,6 @@ var jsExecutionTransformer = function() {
|
||||
|
||||
if (isABindWithoutEventDelegation(node, contextLength)) {
|
||||
metrics.jQueryNotDelegatedEvents += contextLength;
|
||||
offenders.jQueryNotDelegatedEvents.push({
|
||||
functionName: node.data.type.substring(9),
|
||||
contextLength: contextLength,
|
||||
backtrace: offendersHelpers.backtraceToArray(node.data.backtrace)
|
||||
});
|
||||
node.warning = true;
|
||||
node.eventNotDelegated = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user