Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove some debug output
  • Loading branch information
luite committed Aug 20, 2012
1 parent 869d8e6 commit 4869594
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions static/document.js
Expand Up @@ -146,12 +146,6 @@ function posEq(pos1,pos2) {
// replace a range { line, ch } - { line, ch } by str
// returns modification messages
Document.prototype.replace = function(from,to,strs) {
this.dump();
console.log("----replace[[[");
console.log(from);
console.log(to);
console.log(strs);
console.log("]]]");
var mods = [];
var start = this.idbefore(from); // insert new string after this atom
if(start == null) start = [0,0];
Expand All @@ -163,7 +157,6 @@ Document.prototype.replace = function(from,to,strs) {
// first mark atoms as removed
var atom = (aid != null) ? this.atoms.get(aid) : null;
while(atom != null && !aidEq(atom.id,end) && !posEq(from,to)) {
console.log("removing atom: " + this.atomStr(aid));
if(!atom.removed) {
atom.removed = true;
mods.push({ action: 'remove', atom: atom.id });
Expand Down

0 comments on commit 4869594

Please sign in to comment.