Optimize StringMorph::clearSelection()

This was taking a very large chunk of CPU time when copying large scripts.
pull/3/merge
Nathan Dinsmore 2015-06-17 18:50:56 -04:00
rodzic 94687f8e63
commit 1f52f4f152
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -7402,6 +7402,7 @@ StringMorph.prototype.selectionStartSlot = function () {
};
StringMorph.prototype.clearSelection = function () {
if (!this.currentlySelecting && this.startMark === 0 && this.endMark === 0) return;
this.currentlySelecting = false;
this.startMark = 0;
this.endMark = 0;