diff options
| author | Alon Levy <alon@pobox.com> | 2014-08-19 17:44:44 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-08-19 17:44:47 +0300 |
| commit | 86cc69957612248f0991eae7d5fac3a760b06eb2 (patch) | |
| tree | dce490a9ffe8e9b3ff515dce16095ee11cd65d09 /scripts | |
| parent | 406930912197ba0646f2ee437a4e9c4d6471e3e3 (diff) | |
rhizicore: history: fix dereference of undefined
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rhizicore.js | 4 |
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; |
