Remove duplicated spying of window.onload

This commit is contained in:
Gaël Métais
2015-03-10 09:26:07 +01:00
parent 9a861b085a
commit dc2f6e17cd
@@ -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()
});
}
});