Comparing version 4.0.4 to 4.0.5
@@ -105,4 +105,2 @@ /** | ||
// XXX Detach link! | ||
/** | ||
@@ -119,3 +117,3 @@ * Attaches a link as master | ||
link.on('close', function() { | ||
link.on('finish', function() { | ||
this.master = null | ||
@@ -140,3 +138,3 @@ }.bind(this)) | ||
link.on('close', function onclose() { | ||
link.on('finish', function onclose() { | ||
this.slaves.splice(this.slaves.indexOf(link), 1) | ||
@@ -169,5 +167,5 @@ }.bind(this)) | ||
}.bind(this)) | ||
link.on('close', function onclose() { | ||
this.links.splice(this.links.indexOf(link), 1) | ||
link.on('finish', function onclose() { | ||
this.detachLink(link) | ||
}.bind(this)) | ||
@@ -179,2 +177,9 @@ | ||
Document.prototype.detachLink = function(link) { | ||
var idx | ||
if(!~(idx = this.links.indexOf(link))) return; | ||
this.links.splice(idx, 1) | ||
link.reset() | ||
} | ||
Document.prototype.receiveRequestInit = function(link) { | ||
@@ -181,0 +186,0 @@ if(!this.initialized) { |
{ | ||
"name": "gulf", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "transport-agnostic operational transformation control layer", | ||
@@ -5,0 +5,0 @@ "repository": { |
# Gulf [![Build Status](https://travis-ci.org/marcelklehr/gulf.png)](https://travis-ci.org/marcelklehr/gulf) | ||
[![Join the chat at https://gitter.im/marcelklehr/gulf](https://badges.gitter.im/marcelklehr/gulf.svg)](https://gitter.im/marcelklehr/gulf?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
OT is too hard on you? The Gulf stream will sync your documents in real-time. Anywhere in the world, in node.js and the browser! | ||
@@ -3,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104101
1399
365