fixed late join issues, and null on event

This commit is contained in:
Kevin Jahns
2014-09-25 19:38:33 +02:00
parent b750d95b98
commit 4da6efd634
20 changed files with 1110 additions and 928 deletions

View File

@@ -222,7 +222,9 @@
this.deleted_by = [];
}
if ((this.parent != null) && !this.isDeleted()) {
this.parent.callEvent("delete", this, o);
if (o != null) {
this.parent.callEvent("delete", this, o);
}
}
if (o != null) {
this.deleted_by.push(o);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -174,16 +174,12 @@
WordType.prototype.setReplaceManager = function(op) {
this.saveOperation('replace_manager', op);
this.validateSavedOperations();
this.on('insert', (function(_this) {
return function(event, ins) {
var _ref;
return (_ref = _this.replace_manager) != null ? _ref.forwardEvent(_this, 'change', ins) : void 0;
};
})(this));
this.on('insert', function(event, ins) {
return op.forwardEvent(this, 'change', ins);
});
return this.on('delete', (function(_this) {
return function(event, ins, del) {
var _ref;
return (_ref = _this.replace_manager) != null ? _ref.forwardEvent(_this, 'change', del) : void 0;
return op.forwardEvent(_this, 'change', del);
};
})(this));
};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"sources":["Types/XmlTypes.coffee"],"names":[],"mappings":"AAyGwC;AAAA;AAAA","file":"Types/XmlTypes.js","sourceRoot":"/source/","sourcesContent":[""]}
{"version":3,"sources":["Types/XmlTypes.coffee"],"names":[],"mappings":"AA4VkB;AAAA;AAAA","file":"Types/XmlTypes.js","sourceRoot":"/source/","sourcesContent":[""]}