From e31860843d2838a1a6c42c8545f497e9f4577ba2 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 30 Dec 2014 18:34:57 +0200 Subject: history zoom broken (well, so is most of it probably) --- src/client/history.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client') 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) { -- cgit v1.3.1