mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
@dmlap switched events to not bubble by default. closes #2351
This commit is contained in:
@ -67,6 +67,7 @@ CHANGELOG
|
|||||||
* @heff sped up testing ([view](https://github.com/videojs/video.js/pull/2254))
|
* @heff sped up testing ([view](https://github.com/videojs/video.js/pull/2254))
|
||||||
* pass fs state to player from enterFullscreen, split full-window styles into their own selector ([view](https://github.com/videojs/video.js/pull/2357))
|
* pass fs state to player from enterFullscreen, split full-window styles into their own selector ([view](https://github.com/videojs/video.js/pull/2357))
|
||||||
* Fixed vertical option for volumeMenuButton ([view](https://github.com/videojs/video.js/pull/2352))
|
* Fixed vertical option for volumeMenuButton ([view](https://github.com/videojs/video.js/pull/2352))
|
||||||
|
* @dmlap switched events to not bubble by default ([view](https://github.com/videojs/video.js/pull/2351))
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ export function trigger(elem, event, hash) {
|
|||||||
|
|
||||||
// Unless explicitly stopped or the event does not bubble (e.g. media events)
|
// Unless explicitly stopped or the event does not bubble (e.g. media events)
|
||||||
// recursively calls this function to bubble the event up the DOM.
|
// recursively calls this function to bubble the event up the DOM.
|
||||||
if (parent && !event.isPropagationStopped() && event.bubbles !== false) {
|
if (parent && !event.isPropagationStopped() && event.bubbles === true) {
|
||||||
trigger.call(null, parent, event, hash);
|
trigger.call(null, parent, event, hash);
|
||||||
|
|
||||||
// If at the top of the DOM, triggers the default action unless disabled.
|
// If at the top of the DOM, triggers the default action unless disabled.
|
||||||
|
Reference in New Issue
Block a user