Skip to content

Commit

Permalink
use destructuring assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Sep 25, 2015
1 parent 1c183f4 commit 3bbd4a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/VariantTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ var VariantTrack = React.createClass({

updateVisualization: function() {
var canvas = this.getDOMNode(),
width = this.props.width,
height = this.props.height;
{width, height} = this.props;

// Hold off until height & width are known.
if (width === 0) return;
Expand Down

0 comments on commit 3bbd4a6

Please sign in to comment.