fix the case that a new transaction starts in an event listener (afterTransaction, observe, observeDeep)
This commit is contained in:
@@ -12,8 +12,8 @@ class YArrayEvent extends YEvent {
|
||||
}
|
||||
|
||||
export default class YArray extends Type {
|
||||
_callObserver (parentSubs, remote) {
|
||||
this._callEventHandler(new YArrayEvent(this, remote))
|
||||
_callObserver (transaction, parentSubs, remote) {
|
||||
this._callEventHandler(transaction, new YArrayEvent(this, remote))
|
||||
}
|
||||
get (pos) {
|
||||
let n = this._start
|
||||
|
||||
Reference in New Issue
Block a user