summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-25 09:55:00 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-25 09:55:00 +0200
commita54cff4c569f74f7ec1b2ab8379b7ad1820a8af9 (patch)
tree8b0f9c9eaf39f64f2ab1f1b882744bd4b6bb58a1 /program/js
parent5a7b7ce039c5bffc370ec79aea5eba6043c908ec (diff)
Fix error when spell-checking an empty text (#1489831)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/googiespell.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/googiespell.js b/program/js/googiespell.js
index c33c56872..de58b7e87 100644
--- a/program/js/googiespell.js
+++ b/program/js/googiespell.js
@@ -289,6 +289,7 @@ this.prepare = function(ignore, no_indicator)
this.cnt_errors_fixed = 0;
this.cnt_errors = 0;
this.setStateChanged('checking_spell');
+ this.orginal_text = '';
if (!no_indicator && this.main_controller)
this.appendIndicator(this.spell_span);