fix some tests, implement event classes for types, and re-implement logging

This commit is contained in:
Kevin Jahns
2017-10-22 19:13:03 +02:00
parent c92f987496
commit 142a5ada60
3 changed files with 97 additions and 0 deletions

View 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)
}
})
}
}