FIx unrecoverable errors when using IE11

This commit is contained in:
yflory
2019-01-22 12:25:49 +01:00
parent 2a95127aee
commit 01f93f6f7b
3 changed files with 8 additions and 8 deletions

View File

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