Ignore top level videojs events
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -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({ | ... | ... |
-
Please register or sign in to post a comment