diff --git a/LICENSE b/LICENSE index 9d8003a..acd3bca 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2017 liriliri +Copyright (c) 2016-2018 liriliri Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/lib/JsonViewer.js b/src/lib/JsonViewer.js index b745781..7ba92ef 100644 --- a/src/lib/JsonViewer.js +++ b/src/lib/JsonViewer.js @@ -48,11 +48,11 @@ export default class JsonViewer $this.find('ul').html(jsonToHtml(map[circularId], map, false)); $this.rmAttr('data-object-id'); } + + e.stopImmediatePropagation(); if (!$firstSpan.hasClass('eruda-expanded')) return; - e.stopImmediatePropagation(); - let $ul = $this.find('ul').eq(0); if ($firstSpan.hasClass('eruda-collapsed')) {