summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-30 18:34:57 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 13:23:57 +0200
commite31860843d2838a1a6c42c8545f497e9f4577ba2 (patch)
tree4917f591300f19c24d13ddd3fbfce7a8aaf1baef /src
parent5a6e7e31d75b2ca6149b6d8311a558b53e707e69 (diff)
history zoom broken (well, so is most of it probably)
Diffstat (limited to 'src')
-rw-r--r--src/client/history.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/history.js b/src/client/history.js
index ab864d1c..58334690 100644
--- a/src/client/history.js
+++ b/src/client/history.js
@@ -77,6 +77,10 @@ function svg_extract_translate_and_scale(e)
History.prototype.record_zoom = function(d)
{
+ if (this.transform_element === undefined) {
+ // FIXME why is it undefined? set in constructor above
+ return;
+ }
var transform = svg_extract_translate_and_scale(this.transform_element);
if (transform === undefined) {