remove updateMarker method
This commit is contained in:
parent
f1d25fb7b2
commit
b127e92c01
2 changed files with 2 additions and 12 deletions
|
|
@ -505,10 +505,9 @@ Editor.prototype =
|
|||
}
|
||||
|
||||
if (this.selection) {
|
||||
this.renderer.updateMarker(this.selection, this.getSelectionRange());
|
||||
} else {
|
||||
this.selection = this.renderer.addMarker(this.getSelectionRange(), "selection");
|
||||
this.renderer.removeMarker(this.selection);
|
||||
}
|
||||
this.selection = this.renderer.addMarker(this.getSelectionRange(), "selection");
|
||||
},
|
||||
|
||||
selectUp : function() {
|
||||
|
|
|
|||
|
|
@ -231,15 +231,6 @@ VirtualRenderer.prototype.removeMarker = function(markerId)
|
|||
}
|
||||
};
|
||||
|
||||
VirtualRenderer.prototype.updateMarker = function(markerId, range)
|
||||
{
|
||||
var marker = this.markers[markerId];
|
||||
if (marker) {
|
||||
marker.range = range;
|
||||
this.draw();
|
||||
}
|
||||
};
|
||||
|
||||
VirtualRenderer.prototype.updateCursor = function(position)
|
||||
{
|
||||
this.cursorPos = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue