Removed debug code.
This commit is contained in:
@@ -492,7 +492,6 @@ jQuery.extend(Mgly.mergely.prototype, {
|
|||||||
this._changing(this.id + '-lhs', this.id + '-rhs');
|
this._changing(this.id + '-lhs', this.id + '-rhs');
|
||||||
},
|
},
|
||||||
unmarkup: function() {
|
unmarkup: function() {
|
||||||
console.log('UNMARKUP');
|
|
||||||
this._clear();
|
this._clear();
|
||||||
},
|
},
|
||||||
scrollTo: function(side, num) {
|
scrollTo: function(side, num) {
|
||||||
@@ -1129,20 +1128,17 @@ jQuery.extend(Mgly.mergely.prototype, {
|
|||||||
oside = 'rhs';
|
oside = 'rhs';
|
||||||
}
|
}
|
||||||
var pos = ed[side].coordsChar({left:ev.pageX, top:ev.pageY});
|
var pos = ed[side].coordsChar({left:ev.pageX, top:ev.pageY});
|
||||||
console.log('pos', side, pos);
|
|
||||||
|
|
||||||
// get the change id
|
// get the change id
|
||||||
var cid = null;
|
var cid = null;
|
||||||
var info = ed[side].lineInfo(pos.line);
|
var info = ed[side].lineInfo(pos.line);
|
||||||
jQuery.each(info.bgClass.split(' '), function(i, clazz) {
|
jQuery.each(info.bgClass.split(' '), function(i, clazz) {
|
||||||
console.log('clazz', i, clazz);
|
|
||||||
if (clazz.indexOf('cid-') == 0) {
|
if (clazz.indexOf('cid-') == 0) {
|
||||||
cid = parseInt(clazz.split('-')[1]);
|
cid = parseInt(clazz.split('-')[1]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var change = self.changes[cid];
|
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 line = {lhs: ed['lhs'].lineInfo(change['lhs-line-to']), rhs: ed['rhs'].lineInfo(change['rhs-line-to'])};
|
||||||
var text = ed[side].getRange(
|
var text = ed[side].getRange(
|
||||||
|
|||||||
Reference in New Issue
Block a user