diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-30 18:34:57 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-05 13:23:57 +0200 |
| commit | e31860843d2838a1a6c42c8545f497e9f4577ba2 (patch) | |
| tree | 4917f591300f19c24d13ddd3fbfce7a8aaf1baef /src/client | |
| parent | 5a6e7e31d75b2ca6149b6d8311a558b53e707e69 (diff) | |
history zoom broken (well, so is most of it probably)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/history.js | 4 |
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) { |
