This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,14 +79,14 @@ export default class Body extends Component {
7979 constructor ( props , context ) {
8080 super ( props ) ;
8181
82- const { args, children , shape, ...options } = props ;
82+ const { args, shape, ...options } = props ;
8383
8484 this . body = Bodies [ shape ] ( ...args , options ) ;
8585 World . addBody ( context . engine . world , this . body ) ;
8686 }
8787
8888 componentWillReceiveProps ( nextProps ) {
89- const { args , children , shape , ...options } = nextProps ;
89+ const { ...options } = nextProps ;
9090
9191 Object . keys ( options ) . forEach ( ( option ) => {
9292 if ( option in this . body && this . props [ option ] !== nextProps [ option ] ) {
Original file line number Diff line number Diff line change @@ -79,14 +79,14 @@ export default class Body extends Component {
7979 constructor ( props , context ) {
8080 super ( props ) ;
8181
82- const { args, children , shape, ...options } = props ;
82+ const { args, shape, ...options } = props ;
8383
8484 this . body = Bodies [ shape ] ( ...args , options ) ;
8585 World . addBody ( context . engine . world , this . body ) ;
8686 }
8787
8888 componentWillReceiveProps ( nextProps ) {
89- const { args , children , shape , ...options } = nextProps ;
89+ const { ...options } = nextProps ;
9090
9191 Object . keys ( options ) . forEach ( ( option ) => {
9292 if ( option in this . body && this . props [ option ] !== nextProps [ option ] ) {
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ export default class TileMap extends Component {
88 static propTypes = {
99 columns : PropTypes . number ,
1010 layers : PropTypes . array ,
11- sourceWidth : PropTypes . number . isRequired ,
1211 renderTile : PropTypes . func ,
1312 rows : PropTypes . number ,
1413 scale : PropTypes . number ,
14+ sourceWidth : PropTypes . number . isRequired ,
1515 src : PropTypes . number ,
1616 style : PropTypes . object ,
1717 tileSize : PropTypes . number ,
You can’t perform that action at this time.
0 commit comments