pull/7/head
yann300 9 years ago
parent f1f883a5a3
commit 953ff7e958
  1. 4
      src/assemblyItemsBrowser.js
  2. 9
      src/slider.js

@ -40,7 +40,9 @@ module.exports = React.createClass({
<div style={style.container}><span style={style.address}>Current code: {this.state.currentAddress}</span></div>
<div style={style.container}>
<Slider ref="slider" onChange={this.selectState} min="0" max={this.props.vmTrace ? this.props.vmTrace.length : 0}/>
<ButtonNavigator vmTraceLength={this.props.vmTrace ? this.props.vmTrace.length : 0} step={this.state.currentSelected} stepIntoBack={this.stepIntoBack} stepIntoForward={this.stepIntoForward} stepOverBack={this.stepOverBack} stepOverForward={this.stepOverForward} />
<ButtonNavigator
vmTraceLength={this.props.vmTrace ? this.props.vmTrace.length : 0} step={this.state.currentSelected} stepIntoBack={this.stepIntoBack}
stepIntoForward={this.stepIntoForward} stepOverBack={this.stepOverBack} stepOverForward={this.stepOverForward} />
</div>
<div style={style.container}>
<table>

@ -7,8 +7,7 @@ module.exports = React.createClass({
onChange: React.PropTypes.func.isRequired,
},
getDefaultProps: function()
{
getDefaultProps: function () {
return {
min: 0,
max: 500
@ -23,13 +22,11 @@ module.exports = React.createClass({
);
},
onMouseUp: function(event)
{
onMouseUp: function (event) {
this.props.onChange(parseInt(this.refs.rule.value))
},
setValue: function(value)
{
setValue: function (value) {
var diff = value - this.refs.rule.value
if (diff > 0)
this.refs.rule.stepUp(diff)

Loading…
Cancel
Save