Prefix DOM events with skooma: for conflict-avoidance
This commit is contained in:
parent
be2cbee5e6
commit
22558caa9e
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ const fallback = (value, whenUndefined) => typeof value != "undefined" ? value :
|
||||||
export class BeforeReplaceEvent extends Event {
|
export class BeforeReplaceEvent extends Event {
|
||||||
/** @param {Element|Text} next */
|
/** @param {Element|Text} next */
|
||||||
constructor(next) {
|
constructor(next) {
|
||||||
super("beforereplace", { cancelable: true })
|
super("skooma:beforereplace", { cancelable: true })
|
||||||
this.next = next
|
this.next = next
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ export class BeforeReplaceEvent extends Event {
|
||||||
export class AfterReplaceEvent extends Event {
|
export class AfterReplaceEvent extends Event {
|
||||||
/** @param {Element|Text} next */
|
/** @param {Element|Text} next */
|
||||||
constructor(next) {
|
constructor(next) {
|
||||||
super("afterreplace")
|
super("skooma:afterreplace")
|
||||||
this.next = next
|
this.next = next
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ export class AfterReplaceEvent extends Event {
|
||||||
export class ReplacedEvent extends Event {
|
export class ReplacedEvent extends Event {
|
||||||
/** @param {Element|Text} old */
|
/** @param {Element|Text} old */
|
||||||
constructor(old) {
|
constructor(old) {
|
||||||
super("replaced", { bubbles: true })
|
super("skooma:replaced", { bubbles: true })
|
||||||
this.old = old
|
this.old = old
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue