remove extractProperties

pull/7/head
yann300 8 years ago
parent 22d2d80466
commit 3dc81a175f
  1. 3
      src/ui/SolidityLocals.js
  2. 3
      src/ui/SolidityState.js
  3. 5
      src/ui/TreeView.js

@ -13,8 +13,7 @@ class SolidityLocals {
this.basicPanel = new DropdownPanel('Solidity Locals', {
json: true,
formatData: solidityTypeFormatter.formatData,
extractData: solidityTypeFormatter.extractData,
extractProperties: solidityTypeFormatter.extractProperties
extractData: solidityTypeFormatter.extractData
})
this.init()
this.view

@ -12,8 +12,7 @@ function SolidityState (_parent, _traceManager, _codeManager, _solidityProxy) {
this.basicPanel = new DropdownPanel('Solidity State', {
json: true,
formatData: solidityTypeFormatter.formatData,
extractData: solidityTypeFormatter.extractData,
extractProperties: solidityTypeFormatter.extractProperties
extractData: solidityTypeFormatter.extractData
})
this.init()
this.view

@ -12,7 +12,6 @@ class TreeView {
this.beforeJsonValueRendered = opts.beforeJsonValueRendered || noop
this.extractData = opts.extractData || this.extractDataDefault
this.formatData = opts.formatData || this.formatDataDefault
this.extractProperties = opts.extractProperties || this.extractPropertiesDefault
this.view = null
this.cssLabel = ui.formatCss(opts.css || {}, style.label)
this.cssUl = ui.formatCss(opts.css || {}, style.cssUl)
@ -68,10 +67,6 @@ class TreeView {
return yo`<li id=${key + (new Date().getUTCMilliseconds())} style=${this.cssLi}>${label}${renderedChildren}</li>`
}
extractPropertiesDefault (key, data) {
return {}
}
formatDataDefault (key, data) {
return yo`<label>${key}: ${data.self}</label>`
}

Loading…
Cancel
Save