cleanup unit tests
This commit is contained in:
parent
8c1508ab9b
commit
cbd29bc541
7 changed files with 53 additions and 51 deletions
|
|
@ -178,7 +178,8 @@ var Document = function(text) {
|
|||
|
||||
position = this.$clipPosition(position);
|
||||
|
||||
if (this.getLength() >= 1)
|
||||
// only detect new lines if the document has no line break yet
|
||||
if (this.getLength() <= 1)
|
||||
this.$detectNewLine(text);
|
||||
|
||||
var lines = this.$split(text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue