1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-26 14:34:27 +02:00

Events now bubble by default

This commit is contained in:
Antonio Laguna
2018-01-01 15:37:35 +01:00
parent e9fa8d2e3a
commit bee1e87c7f

View File

@@ -148,7 +148,8 @@ export default class DOM {
*/ */
static fireEvent(target, eventType, eventInfo = {}) { static fireEvent(target, eventType, eventInfo = {}) {
const event = new WSCustomEvent(eventType, { const event = new WSCustomEvent(eventType, {
detail: eventInfo detail: eventInfo,
bubbles: true
}); });
target.dispatchEvent(event); target.dispatchEvent(event);