do not redraw whole editor when only one cursor is visible

This commit is contained in:
nightwing 2012-04-15 13:58:08 +04:00
commit 04e83afee1

View file

@ -107,11 +107,11 @@ var Cursor = function(parentEl) {
if (!this.isVisible)
return;
var element = this.element;
var element = this.cursors.length == 1 ? this.cursor : this.element;
this.blinkId = setInterval(function() {
element.style.visibility = "hidden";
setTimeout(function() {
element.style.visibility = "visible";
element.style.visibility = "";
}, 400);
}, 1000);
};