Remove jQueryNotDelegatedEvents offenders and send user to filtered timeline

This commit is contained in:
Gaël Métais
2015-05-25 09:22:25 +02:00
parent 7f67c032d1
commit 5e3748315c
3 changed files with 6 additions and 22 deletions
-6
View File
@@ -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;
}