Comments & required props

pull/21833/head
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.enterTabCompleteTimerId = null;
this.inPassiveMode = false;
// Map tracking ordering of the room members.
// userId: integer, highest comes first.
this.memberTabOrder = {};
// monotonically increasing counter used for tracking ordering of members
this.memberOrderSeq = 0;
}

View File

@ -28,7 +28,7 @@ module.exports = React.createClass({
room: React.PropTypes.object.isRequired,
// 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
numUnreadMessages: React.PropTypes.number,