From 892b7aaadd51f28db166e376795d08fa568d1919 Mon Sep 17 00:00:00 2001 From: abe33 Date: Thu, 27 Aug 2015 10:05:42 +0200 Subject: [PATCH] :bug: Prevent any measuring when there's no minimap model Fixes #376 --- lib/minimap-element.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee index 1412a22a..3e4e56e8 100644 --- a/lib/minimap-element.coffee +++ b/lib/minimap-element.coffee @@ -411,6 +411,8 @@ class MinimapElement extends HTMLElement # forceUpdate - A {Boolean} that forces the update even when no changes were # detected. measureHeightAndWidth: (visibilityChanged, forceUpdate=true) -> + return unless @minimap? + wasResized = @width isnt @clientWidth or @height isnt @clientHeight @height = @clientHeight