diff options
Diffstat (limited to 'src')
| -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) { |
