d55d72d5 by Gary Katsevman

Ignore top level videojs events

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