From ee00bc9ece879fbe6f599f60c36df10bec7ca07f Mon Sep 17 00:00:00 2001 From: surunzi Date: Thu, 2 Jan 2020 18:36:03 +0800 Subject: [PATCH] chore: small changes --- src/lib/JsonViewer.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/JsonViewer.js b/src/lib/JsonViewer.js index a75e31e..beb175a 100644 --- a/src/lib/JsonViewer.js +++ b/src/lib/JsonViewer.js @@ -15,8 +15,6 @@ import { keys, trim, lowerCase, - isUndef, - stringifyAll, Emitter } from './util' import evalCss from './evalCss' @@ -32,14 +30,6 @@ export default class JsonViewer extends Emitter { hasEvalCss = true } - if (isObj(data) && isUndef(data.type) && isUndef(data.id)) { - data = JSON.parse( - stringifyAll(data, { - ignore: [Object.prototype, Array.prototype] - }) - ) - } - this._data = { id: uniqId('json'), enumerable: {