d55d72d5 by Gary Katsevman

Ignore top level videojs events

1 parent ed3af99f
......@@ -1211,7 +1211,10 @@ test('remove event handlers on dispose', function() {
oldOn.call(player, type, handler);
};
player.off = function(type, handler) {
offhandlers++;
// ignore the top-level videojs removals that aren't relevant to HLS
if (type && type !== 'dispose') {
offhandlers++;
}
oldOff.call(player, type, handler);
};
player.src({
......