upd
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -550,7 +550,11 @@ module.exports = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ReplaceManager.prototype.deleteContent = function() {
|
ReplaceManager.prototype.deleteContent = function() {
|
||||||
|
var last_op;
|
||||||
|
last_op = this.getLastOperation();
|
||||||
|
if ((!last_op.isDeleted()) && last_op.type !== "Delimiter") {
|
||||||
(new ops.Delete(null, void 0, this.getLastOperation().uid)).execute();
|
(new ops.Delete(null, void 0, this.getLastOperation().uid)).execute();
|
||||||
|
}
|
||||||
return void 0;
|
return void 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -507,6 +507,8 @@ module.exports = ()->
|
|||||||
@getLastOperation().isDeleted()
|
@getLastOperation().isDeleted()
|
||||||
|
|
||||||
deleteContent: ()->
|
deleteContent: ()->
|
||||||
|
last_op = @getLastOperation()
|
||||||
|
if (not last_op.isDeleted()) and last_op.type isnt "Delimiter"
|
||||||
(new ops.Delete null, undefined, @getLastOperation().uid).execute()
|
(new ops.Delete null, undefined, @getLastOperation().uid).execute()
|
||||||
undefined
|
undefined
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user