From dc2f6e17cd8426ee427fabf945d04b1571e659fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 10 Mar 2015 09:26:07 +0100 Subject: [PATCH] Remove duplicated spying of window.onload --- lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js b/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js index cdb1134..bb7762a 100644 --- a/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js +++ b/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js @@ -262,14 +262,6 @@ exports.module = function(phantomas) { if ((eventName === 'load') && (this[0] === window)) { phantomas.incrMetric('jQueryWindowOnLoadFunctions'); phantomas.addOffender('jQueryWindowOnLoadFunctions', phantomas.getCaller(2)); - - phantomas.pushContext({ - type: 'jQuery - windowOnLoad', - callDetails: { - arguments: [func] - }, - backtrace: phantomas.getBacktrace() - }); } });