Skip to content

Commit

Permalink
fix: ∆
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLantz committed Jan 9, 2017
1 parent a13ea96 commit ec1e1ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/js/AlertList.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ export default AlertList;

function _handleClose (currentIndex) {

// apply style and decrement array...
const { alertList } = this.state;

this.setState({
dismissAlert:'close-title-animation',
alertList:this.state.alertList.filter((e, index, a) => a[index] !== a[currentIndex] )
dismissAlert : 'close-title-animation',
alertList : alertList.filter((e, index, a) => a[index] !== a[currentIndex])
});

this.state.alertList.forEach(((a, i) => console.log(i + ' ' + a)))

}


Expand Down

0 comments on commit ec1e1ee

Please sign in to comment.