fix some tests, implement event classes for types, and re-implement logging
This commit is contained in:
16
src/Type/y-xml/YXmlEvent.js
Normal file
16
src/Type/y-xml/YXmlEvent.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
export default class YXmlEvent {
|
||||
constructor (target, subs, remote) {
|
||||
this.target = target
|
||||
this.childListChanged = false
|
||||
this.attributesChanged = new Set()
|
||||
this.remote = remote
|
||||
subs.forEach((sub) => {
|
||||
if (sub === null) {
|
||||
this.childListChanged = true
|
||||
} else {
|
||||
this.attributesChanged.add(sub)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user