From 86cc69957612248f0991eae7d5fac3a760b06eb2 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 19 Aug 2014 17:44:44 +0300 Subject: rhizicore: history: fix dereference of undefined --- scripts/rhizicore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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; -- cgit v1.3.1