From de36863ea0f3b341056b181026ae2e5a7c039c1b Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 13 Sep 2011 07:14:03 +0000 Subject: - Fix js error when calling spellchecker on empty textarea --- program/js/googiespell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/js/googiespell.js b/program/js/googiespell.js index 6101fd2ea..7f465687c 100644 --- a/program/js/googiespell.js +++ b/program/js/googiespell.js @@ -211,7 +211,7 @@ this.getUrl = function() this.escapeSpecial = function(val) { - return val.replace(/&/g, "&").replace(//g, ">"); + return val ? val.replace(/&/g, "&").replace(//g, ">") : ''; }; this.createXMLReq = function (text) -- cgit v1.2.3