chore: small changes

This commit is contained in:
surunzi
2020-01-02 18:36:03 +08:00
parent c466cd575c
commit ee00bc9ece

View File

@@ -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: {