- Fix js error when calling spellchecker on empty textarea

release-0.7
alecpl 13 years ago
parent 1cc9e210f5
commit de36863ea0

@ -211,7 +211,7 @@ this.getUrl = function()
this.escapeSpecial = function(val)
{
return val.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
return val ? val.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : '';
};
this.createXMLReq = function (text)

Loading…
Cancel
Save