Release 0.8.5

This commit is contained in:
Kevin Jahns
2016-01-15 18:09:46 +01:00
parent 8544c16771
commit 0398b5260a
3 changed files with 5 additions and 2 deletions

2
dist

Submodule dist updated: 919dfb5e16...2650338b4b

View File

@@ -1,6 +1,6 @@
{
"name": "yjs",
"version": "0.8.5",
"version": "0.8.6",
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
"main": "./src/y.js",
"scripts": {

View File

@@ -171,6 +171,9 @@ module.exports = function (Y/* :any */) {
Buffer operations, and broadcast them when ready.
*/
broadcastOps (ops) {
ops = ops.map(function (op) {
return Y.Struct[op.struct].encode(op)
})
var self = this
function broadcastOperations () {
if (self.broadcastOpBuffer.length > 0) {