This commit is contained in:
Fabian Jakobs 2012-03-30 18:09:11 +02:00
commit dd986d45e5
224 changed files with 44855 additions and 16702 deletions

View file

@ -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);