Skip to content

Instantly share code, notes, and snippets.

@ericdfields
Created March 4, 2015 18:53
Show Gist options
  • Save ericdfields/fb7eefadee79f3d6e30e to your computer and use it in GitHub Desktop.
Save ericdfields/fb7eefadee79f3d6e30e to your computer and use it in GitHub Desktop.
cleanUpNotifications: function() {
var now = Date.now()
var _this = this;
this.state.notifications.map(function(notification,i) {
if (now - notification.added > _this.props.cleanUpInterval) {
_this.handleRemove(i)
}
})
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment