Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_initCellPositioner() {
if (typeof this._cellPositioner === "undefined") {
const { columnWidth, gutterSize } = this.state;
this._cellPositioner = createMasonryCellPositioner({
cellMeasurerCache: this._cache,
columnCount: this._columnCount,
columnWidth,
spacer: gutterSize
});
}
}
_initCellPositioner() {
if (typeof this._cellPositioner === "undefined") {
const { columnWidth, gutterSize } = this.state;
this._cellPositioner = createMasonryCellPositioner({
cellMeasurerCache: this._cache,
columnCount: this._columnCount,
columnWidth,
spacer: gutterSize
});
}
}