|
|
@ -40,9 +40,9 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var makeCursor = function (id, cursor) {
|
|
|
|
var makeCursor = function (id, cursor) {
|
|
|
|
if (cursors[id]) {
|
|
|
|
if (cursors[id]) {
|
|
|
|
cursors[id].el.remove();
|
|
|
|
$(cursors[id].el).remove();
|
|
|
|
cursors[id].elstart.remove();
|
|
|
|
$(cursors[id].elstart).remove();
|
|
|
|
cursors[id].elend.remove();
|
|
|
|
$(cursors[id].elend).remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cursors[id] = {
|
|
|
|
cursors[id] = {
|
|
|
|
el: $('<span>', {
|
|
|
|
el: $('<span>', {
|
|
|
@ -68,9 +68,9 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var deleteCursor = function (id) {
|
|
|
|
var deleteCursor = function (id) {
|
|
|
|
if (!cursors[id]) { return; }
|
|
|
|
if (!cursors[id]) { return; }
|
|
|
|
cursors[id].el.remove();
|
|
|
|
$(cursors[id].el).remove();
|
|
|
|
cursors[id].elstart.remove();
|
|
|
|
$(cursors[id].elstart).remove();
|
|
|
|
cursors[id].elend.remove();
|
|
|
|
$(cursors[id].elend).remove();
|
|
|
|
delete cursors[id];
|
|
|
|
delete cursors[id];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|