Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
handleChange = cells => {
if (!equal(this.state.cells, cells)) {
this.restartFlashAnimation();
this.setState({ cells });
}
};
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);
equals = model =>
equal(this._rows, model._rows) &&
equal(this._columns, model._columns) &&
equal(this._selectionStarted, model._selectionStarted) &&
equal(this._startRow, model._startRow) &&
equal(this._startColumn, model._startColumn) &&
equal(this._endRow, model._endRow) &&
equal(this._endColumn, model._endColumn) &&
equal(this._addMode, model._addMode) &&
equal(this._cellsSelected, model._cellsSelected);