Commit 9f3b0c90 authored by Matthew Taylor's avatar Matthew Taylor

Merge branch 'hotfix/fix-interval' of github.com:mewtaylor/scratch-www into develop

* 'hotfix/fix-interval' of github.com:mewtaylor/scratch-www:
  remove debug message
parents 88ea667f a90dd6e2
...@@ -45,7 +45,6 @@ var Navigation = React.createClass({ ...@@ -45,7 +45,6 @@ var Navigation = React.createClass({
if (this.props.session.session.user) { if (this.props.session.session.user) {
var intervalId = setInterval(function () { var intervalId = setInterval(function () {
this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username)); this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username));
console.log('did things');
}.bind(this), 120000); // check for new messages every 2 mins. }.bind(this), 120000); // check for new messages every 2 mins.
this.setState({'messageCountIntervalId': intervalId}); this.setState({'messageCountIntervalId': intervalId});
} }
...@@ -59,7 +58,6 @@ var Navigation = React.createClass({ ...@@ -59,7 +58,6 @@ var Navigation = React.createClass({
if (this.props.session.session.user) { if (this.props.session.session.user) {
var intervalId = setInterval(function () { var intervalId = setInterval(function () {
this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username)); this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username));
console.log('did things');
}.bind(this), 120000); // check for new messages every 2 mins. }.bind(this), 120000); // check for new messages every 2 mins.
this.setState({'messageCountIntervalId': intervalId}); this.setState({'messageCountIntervalId': intervalId});
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment