package
This commit is contained in:
parent
0fb6590f26
commit
dd986d45e5
224 changed files with 44855 additions and 16702 deletions
|
|
@ -1822,7 +1822,7 @@ var Document = function(text) {
|
|||
};
|
||||
|
||||
this.insert = function(position, text) {
|
||||
if (text.length == 0)
|
||||
if (!text || text.length === 0)
|
||||
return position;
|
||||
|
||||
position = this.$clipPosition(position);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue