mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Remove unused DocumentUpdater.js file
This commit is contained in:
@@ -1,181 +0,0 @@
|
||||
(function(exports){
|
||||
Ace = require('aceserverside-sharelatex')
|
||||
Range = Ace.Range
|
||||
|
||||
//look at applyDeltas method
|
||||
exports.applyChange = function(aceDoc, change, callback) {
|
||||
var r = change.range;
|
||||
var range = new Range(r.start.row, r.start.column, r.end.row, r.end.column);
|
||||
if('insertText'==change.action){
|
||||
aceDoc.insert(change.range.start, change.text);
|
||||
}else if('insertLines'==change.action){
|
||||
aceDoc.insertLines(change.range.start.row, change.lines);
|
||||
}else if('removeText'==change.action){
|
||||
aceDoc.remove(range);
|
||||
}else if('removeLines'==change.action){
|
||||
aceDoc.removeLines(range.start.row, range.end.row-1);
|
||||
}
|
||||
|
||||
if(typeof callback === 'function'){
|
||||
callback(null, aceDoc);
|
||||
};
|
||||
}
|
||||
|
||||
})(typeof exports === 'undefined'? this['documentUpdater']={}: exports);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user