Remove trailing whitespace

This commit is contained in:
Mark Haines 2016-03-15 18:38:24 +00:00
parent eb01cb9cba
commit 31915db6f6
31 changed files with 103 additions and 103 deletions

View file

@ -40,7 +40,7 @@ var LeftPanel = React.createClass({
componentWillReceiveProps: function(newProps) {
this._recheckCallElement(newProps.selectedRoom);
},
},
componentWillUnmount: function() {
dis.unregister(this.dispatcherRef);
@ -95,7 +95,7 @@ var LeftPanel = React.createClass({
}
else {
// Hide the collapse button until we work out how to display it in the new skin
// collapseButton = <img className="mx_LeftPanel_hideButton" onClick={ this.onHideClick } src="img/hide.png" width="12" height="20" alt="<"/>
// collapseButton = <img className="mx_LeftPanel_hideButton" onClick={ this.onHideClick } src="img/hide.png" width="12" height="20" alt="<"/>
}
var callPreview;

View file

@ -38,7 +38,7 @@ module.exports = React.createClass({
},
componentWillUnmount: function() {
dis.unregister(this.dispatcherRef);
dis.unregister(this.dispatcherRef);
if (MatrixClientPeg.get()) {
MatrixClientPeg.get().removeListener("RoomState.members", this.onRoomStateMember);
}

View file

@ -47,7 +47,7 @@ module.exports = React.createClass({
var self = this;
MatrixClientPeg.get().publicRooms(function (err, data) {
if (err) {
self.setState({ loading: false });
self.setState({ loading: false });
console.error("Failed to get publicRooms: %s", JSON.stringify(err));
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, {
@ -124,7 +124,7 @@ module.exports = React.createClass({
<div className="mx_RoomDirectory_perm">Guests can join</div>
);
}
perms = null;
if (guestRead || guestJoin) {
perms = <div className="mx_RoomDirectory_perms">{guestRead} {guestJoin}</div>;
@ -169,7 +169,7 @@ module.exports = React.createClass({
render: function() {
if (this.state.loading) {
var Loader = sdk.getComponent("elements.Spinner");
var Loader = sdk.getComponent("elements.Spinner");
return (
<div className="mx_RoomDirectory">
<Loader />

View file

@ -187,15 +187,15 @@ var RoomSubList = React.createClass({
var rooms = this.state.sortedList;
if (found.room) {
rooms.splice(found.index, 1);
}
}
else {
console.warn("Can't remove room " + room.roomId + " - can't find it");
}
this.setState({ sortedList: rooms });
},
findRoomTile: function(room) {
var index = this.state.sortedList.indexOf(room);
findRoomTile: function(room) {
var index = this.state.sortedList.indexOf(room);
if (index >= 0) {
// console.log("found: room: " + room.roomId + " with index " + index);
}
@ -210,7 +210,7 @@ var RoomSubList = React.createClass({
},
calcManualOrderTagData: function(room) {
var index = this.state.sortedList.indexOf(room);
var index = this.state.sortedList.indexOf(room);
// we sort rooms by the lexicographic ordering of the 'order' metadata on their tags.
// for convenience, we calculate this for now a floating point number between 0.0 and 1.0.
@ -274,7 +274,7 @@ var RoomSubList = React.createClass({
},
_getHeaderJsx: function() {
var TintableSvg = sdk.getComponent("elements.TintableSvg");
var TintableSvg = sdk.getComponent("elements.TintableSvg");
return (
<h2 onClick={ this.onClick } className="mx_RoomSubList_label">
{ this.props.collapsed ? '' : this.props.label }
@ -332,7 +332,7 @@ var RoomSubList = React.createClass({
}
else {
subList = <TruncatedList className={ classes }>
</TruncatedList>;
</TruncatedList>;
}
return connectDropTarget(
@ -356,7 +356,7 @@ var RoomSubList = React.createClass({
// Export the wrapped version, inlining the 'collect' functions
// to more closely resemble the ES7
module.exports =
module.exports =
DropTarget('RoomTile', roomListTarget, function(connect) {
return {
connectDropTarget: connect.dropTarget(),

View file

@ -40,7 +40,7 @@ module.exports = React.createClass({
this.props.onFinished();
}
},
render: function() {
return (
<div className="mx_ViewSource">