summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/rhizicore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 7c9ed274..715c8475 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -467,7 +467,9 @@ function myGraph(el) {
this.set_user = set_user;
function clear_history() {
- this.history.clear();
+ if (this.history !== undefined) {
+ this.history.clear();
+ }
}
this.clear_history = clear_history;