Spy scrollBounds on document too
This commit is contained in:
@@ -39,7 +39,7 @@ exports.module = function(phantomas) {
|
||||
});
|
||||
|
||||
// count window.addEventListener('scroll', ...) - issue #508
|
||||
if (eventType === 'scroll' && path === 'window') {
|
||||
if (eventType === 'scroll' && (path === 'window' || path === '#document')) {
|
||||
phantomas.incrMetric('eventsScrollBound');
|
||||
phantomas.addOffender('eventsScrollBound', 'bound by %s', phantomas.getBacktrace());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user