Release 0.8.8
This commit is contained in:
2
dist
2
dist
Submodule dist updated: 65ea42481e...e58f633115
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "0.8.8",
|
"version": "0.8.9",
|
||||||
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
|
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
|
||||||
"main": "./src/y.js",
|
"main": "./src/y.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ module.exports = function (Y/* :any */) {
|
|||||||
this.userEventListeners.push(f)
|
this.userEventListeners.push(f)
|
||||||
}
|
}
|
||||||
userLeft (user) {
|
userLeft (user) {
|
||||||
|
if (this.connections[user] != null) {
|
||||||
delete this.connections[user]
|
delete this.connections[user]
|
||||||
if (user === this.currentSyncTarget) {
|
if (user === this.currentSyncTarget) {
|
||||||
this.currentSyncTarget = null
|
this.currentSyncTarget = null
|
||||||
@@ -90,6 +91,7 @@ module.exports = function (Y/* :any */) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
userJoined (user, role) {
|
userJoined (user, role) {
|
||||||
if (role == null) {
|
if (role == null) {
|
||||||
throw new Error('You must specify the role of the joined user!')
|
throw new Error('You must specify the role of the joined user!')
|
||||||
|
|||||||
Reference in New Issue
Block a user