From 600e5bb1ba3c855eac0312a9573d47b605b30ed5 Mon Sep 17 00:00:00 2001 From: abe33 Date: Wed, 3 Dec 2014 11:32:59 +0100 Subject: [PATCH] Add more defensive code if a marker can't be retrieved --- lib/mixins/decoration-management.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mixins/decoration-management.coffee b/lib/mixins/decoration-management.coffee index 3f615d2c..39e01ec7 100644 --- a/lib/mixins/decoration-management.coffee +++ b/lib/mixins/decoration-management.coffee @@ -93,6 +93,7 @@ class DecorationManagement extends Mixin decorateMarker: (marker, decorationParams) -> return unless marker? marker = @getMarker(marker.id) + return unless marker? if !decorationParams.scope? and decorationParams.class? cls = decorationParams.class.split(' ').join('.')