Comments & required props

This commit is contained in:
David Baker 2016-07-15 17:15:51 +01:00
parent 327015ba0f
commit ccf8e269cd
2 changed files with 6 additions and 1 deletions

View file

@ -48,7 +48,12 @@ class TabComplete {
this.isFirstWord = false; // true if you tab-complete on the first word this.isFirstWord = false; // true if you tab-complete on the first word
this.enterTabCompleteTimerId = null; this.enterTabCompleteTimerId = null;
this.inPassiveMode = false; this.inPassiveMode = false;
// Map tracking ordering of the room members.
// userId: integer, highest comes first.
this.memberTabOrder = {}; this.memberTabOrder = {};
// monotonically increasing counter used for tracking ordering of members
this.memberOrderSeq = 0; this.memberOrderSeq = 0;
} }

View file

@ -28,7 +28,7 @@ module.exports = React.createClass({
room: React.PropTypes.object.isRequired, room: React.PropTypes.object.isRequired,
// a TabComplete object // a TabComplete object
tabComplete: React.PropTypes.object, tabComplete: React.PropTypes.object.isRequired,
// the number of messages which have arrived since we've been scrolled up // the number of messages which have arrived since we've been scrolled up
numUnreadMessages: React.PropTypes.number, numUnreadMessages: React.PropTypes.number,