Skip to content
Browse files

Fixed issue #5

  • Loading branch information...
1 parent 2076ac5 commit b6f9abad8e8c5efd4703619c0c11e7a1904fb115 @ccotter ccotter committed Sep 17, 2012
View
BIN dist/jsoe/coweb-jsoe-0.8.3.tar
Binary file not shown.
View
2 dist/jsoe/coweb-jsoe-0.8.3/coweb/jsoe/ContextVectorTable.js
@@ -41,7 +41,7 @@ define([
*/
ContextVectorTable.prototype.toString = function() {
var arr = [];
- for(var i = 0, l = this.cvt.length; i++; i < l) {
+ for(var i = 0, l = this.cvt.length; i < l; ++i) {
var cv = this.cvt[i];
arr[i] = cv.toString();
}
View
6 dist/jsoe/coweb-jsoe-0.8.3/coweb/jsoe/OTEngine.js
@@ -38,7 +38,7 @@ define([
* The returned JSON object should be forwarded to remote peers
* unchanged.
*
- * - {JSON object} remoteEvent(op, order):
+ * - {JSON object} remoteEvent(order, op):
* Local peers must call this to have the local engine process a remote
* peer's change. The JSON object passed to remoteEvent must be the
* exact JSON object returned by the remote peer's call to localEvent.
@@ -90,7 +90,7 @@ define([
proto.syncOutbound = function() {
if (!this._engine || !this._engineStable)
return false;
- return this._engine.copyContextVector();
+ return this._engine.copyContextVector().sites;
};
/**
@@ -227,8 +227,8 @@ define([
* then this local site must transform the operation to one that can be
* applied locally (maintaining consistency).
*
- * @param remoteOp remote operation to be transformed
* @param order Total order seen by all collaborators.
+ * @param remoteOp remote operation to be transformed
* @return transformed event that can safely be applied to the local
* document
*/
View
2 dist/jsoe/coweb-jsoe-0.8.3/coweb/jsoe/Operation.js
@@ -75,8 +75,6 @@ define([
if(!this.xCache) {
this.xCache = [];
}
- // always mutable to start
- this.immutable = false;
};
/**
View
BIN dist/npm/coweb-jsoe-0.8.3.tgz
Binary file not shown.
View
2 src/coweb/jsoe/OTEngine.js
@@ -90,7 +90,7 @@ define([
proto.syncOutbound = function() {
if (!this._engine || !this._engineStable)
return false;
- return this._engine.copyContextVector();
+ return this._engine.copyContextVector().sites;
};
/**

0 comments on commit b6f9aba

Please sign in to comment.
Something went wrong with that request. Please try again.