Skip to content

Commit

Permalink
maybe bad?
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbutler committed May 27, 2020
1 parent f968f1e commit c2ce780
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions components/experimental/table-document/src/cellrange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class CellRange {

public forEachRowMajor(callback: (row: number, col: number) => boolean) {
const r = this.getRange();
for (let row = r.row, numRows = r.numRows; numRows > 0; row++, numRows--) {
for (let col = r.col, numCols = r.numCols; numCols > 0; col++, numCols--) {
for (let row = r.row, numRows = r.numRows; numRows > 0; row++ , numRows--) {
for (let col = r.col, numCols = r.numCols; numCols > 0; col++ , numCols--) {
if (!callback(row, col)) {
return;
}
Expand All @@ -73,8 +73,8 @@ export class CellRange {

public forEachColMajor(callback: (row: number, col: number) => boolean) {
const r = this.getRange();
for (let col = r.col, numCols = r.numCols; numCols > 0; col++, numCols--) {
for (let row = r.row, numRows = r.numRows; numRows > 0; row++, numRows--) {
for (let col = r.col, numCols = r.numCols; numCols > 0; col++ , numCols--) {
for (let row = r.row, numRows = r.numRows; numRows > 0; row++ , numRows--) {
if (!callback(row, col)) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/merge-tree/src/mergeTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ export class MergeTree {
// and update the block's info.
for (let childIndex = 0;
childIndex < maxChildren && nodeIndex < nodes.length; // While we still have children & nodes left
childIndex++, nodeIndex++ // Advance to next child & node
childIndex++ , nodeIndex++ // Advance to next child & node
) {
// Insert the next node into the current block
this.addNode(block, nodes[nodeIndex]);
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/sequence/src/sparsematrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
const removeColEnd = srcCol + numCols;
const ops = [];

for (let r = 0, rowStart = 0; r < this.numRows; r++, rowStart += maxCols) {
for (let r = 0, rowStart = 0; r < this.numRows; r++ , rowStart += maxCols) {
ops.push(this.client.removeRangeLocal(rowStart + removeColStart, rowStart + removeColEnd));
const insertPos = rowStart + destCol;
const segment = new PaddingSegment(numCols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class VersionTest extends PrimedComponent implements IComponentHTMLView {
<p className="title">{title}</p>
<input className="titleInput" type={"text"} onChange={e => this.root.set("title", e.target.value)} />
<br />
new title:
new title:
<p className="title2">{title2}</p>
<input className="title2Input" type={"text"} onChange={e => this.root.set("title2", e.target.value)} />
<br />
Expand Down
2 changes: 1 addition & 1 deletion packages/test/context-reload/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class VersionTest extends PrimedComponent implements IComponentHTMLView {
<input type="text" value={this.upgradeToPkg} onChange={e => { this.upgradeToPkg = e.currentTarget.value; rerender(); }} />@
<input type="text" value={this.upgradeToVersion} onChange={e => { this.upgradeToVersion = e.currentTarget.value; rerender(); }} />
<br />
cdn:
cdn:
<input className="cdn" type="text" value={this.cdn} onChange={e => { this.cdn = e.currentTarget.value; rerender(); }} />
</div>
<button className="upgrade" onClick={() => this.quorumProposeCode()}>Upgrade Version</button>
Expand Down

0 comments on commit c2ce780

Please sign in to comment.