1
0
mirror of synced 2025-12-12 09:23:21 +08:00

Removed debug code.

This commit is contained in:
Jamie Peabody
2013-05-12 19:56:41 +01:00
parent ea2263ff29
commit eb3b45ff92

View File

@@ -492,7 +492,6 @@ jQuery.extend(Mgly.mergely.prototype, {
this._changing(this.id + '-lhs', this.id + '-rhs');
},
unmarkup: function() {
console.log('UNMARKUP');
this._clear();
},
scrollTo: function(side, num) {
@@ -1129,20 +1128,17 @@ jQuery.extend(Mgly.mergely.prototype, {
oside = 'rhs';
}
var pos = ed[side].coordsChar({left:ev.pageX, top:ev.pageY});
console.log('pos', side, pos);
// get the change id
var cid = null;
var info = ed[side].lineInfo(pos.line);
jQuery.each(info.bgClass.split(' '), function(i, clazz) {
console.log('clazz', i, clazz);
if (clazz.indexOf('cid-') == 0) {
cid = parseInt(clazz.split('-')[1]);
return false;
}
});
var change = self.changes[cid];
console.log('change', change);
var line = {lhs: ed['lhs'].lineInfo(change['lhs-line-to']), rhs: ed['rhs'].lineInfo(change['rhs-line-to'])};
var text = ed[side].getRange(