[se] Refactoring

Delete redundant check wrap. Check wrap in function _cleanFragments
This commit is contained in:
Alexander.Trofimov
2019-01-31 16:52:23 +03:00
parent 97e26c91e4
commit 95792e090d

View File

@ -635,10 +635,6 @@
return;
}
var wrap = fragments.some(function (val) {
return -1 !== val.text.indexOf(kNewLine);
});
this._cleanFragments(fragments);
if (this.selectionBegin !== this.selectionEnd) {
@ -651,11 +647,6 @@
this._addFragments(fragments, this.cursorPos);
if (wrap) {
this._wrapText();
this._update();
}
// Сделано только для вставки формулы в ячейку (когда не открыт редактор)
if (undefined !== cursorPos) {
this._moveCursor(kPosition, cursorPos);