Skip to content

Commit

Permalink
Fix some typos in comments and test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan power authored and nathan power committed Jul 7, 2017
1 parent 2268b61 commit 8136a16
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/Collection/CollectionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import getScrollbarSize from 'dom-helpers/util/scrollbarSize'
// @TODO Merge Collection and CollectionView

/**
* Specifies the number of miliseconds during which to disable pointer events while a scroll is in progress.
* Specifies the number of milliseconds during which to disable pointer events while a scroll is in progress.
* This improves performance and makes scrolling smoother.
*/
const IS_SCROLLING_TIMEOUT = 150
Expand Down
4 changes: 2 additions & 2 deletions source/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import defaultCellRangeRenderer from './defaultCellRangeRenderer'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'

/**
* Specifies the number of miliseconds during which to disable pointer events while a scroll is in progress.
* Specifies the number of milliseconds during which to disable pointer events while a scroll is in progress.
* This improves performance and makes scrolling smoother.
*/
export const DEFAULT_SCROLLING_RESET_TIME_INTERVAL = 150
Expand Down Expand Up @@ -587,7 +587,7 @@ export default class Grid extends PureComponent {

// Special case where the previous size was 0:
// In this case we don't show any windowed cells at all.
// So we should always recalculate offset aftward.
// So we should always recalculate offset afterwards.
const sizeJustIncreasedFromZero = (
(prevProps.width === 0 || prevProps.height === 0) &&
(height > 0 && width > 0)
Expand Down
2 changes: 1 addition & 1 deletion source/Grid/utils/CellSizeAndPositionManager.jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('CellSizeAndPositionManager', () => {
expect(() => cellSizeAndPositionManager.getSizeAndPositionOfCell(100)).toThrow()
})

it('should returnt he correct size and position information for the requested cell', () => {
it('should return the correct size and position information for the requested cell', () => {
const { cellSizeAndPositionManager } = getCellSizeAndPositionManager()
expect(cellSizeAndPositionManager.getSizeAndPositionOfCell(0).offset).toEqual(0)
expect(cellSizeAndPositionManager.getSizeAndPositionOfCell(0).size).toEqual(10)
Expand Down
2 changes: 1 addition & 1 deletion source/Grid/utils/CellSizeAndPositionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class CellSizeAndPositionManager {

/**
* Total size of all cells being measured.
* This value will be completedly estimated initially.
* This value will be completely estimated initially.
* As cells as measured the estimate will be updated.
*/
getTotalSize (): number {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('ScalingCellSizeAndPositionManager', () => {
}

describe('_getOffsetPercentage', () => {
it('should eturn the correct offset fraction', () => {
it('should return the correct offset fraction', () => {
var expectations = [
{ offset: 0, expectedOffsetPercentage: 0 },
{ offset: 35, expectedOffsetPercentage: 0.5 },
Expand Down
2 changes: 1 addition & 1 deletion source/Grid/utils/ScalingCellSizeAndPositionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class ScalingCellSizeAndPositionManager {

/**
* Number of pixels a cell at the given position (offset) should be shifted in order to fit within the scaled container.
* The offset passed to this function is scalled (safe) as well.
* The offset passed to this function is scaled (safe) as well.
*/
getOffsetAdjustment ({
containerSize,
Expand Down

0 comments on commit 8136a16

Please sign in to comment.