diff --git a/lib/index.js b/lib/index.js index bb0e21e..53d7455 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,7 +91,7 @@ export default class HyperList { throw new Error('HyperList requires a valid DOM Node container'); } - this._element = element; + this.element = element; const config = this._config; @@ -210,12 +210,12 @@ export default class HyperList { return config.overrideScrollPosition(); } - return this._element.scrollTop; + return this.element.scrollTop; } _renderChunk() { const config = this._config; - const element = this._element; + const element = this.element; const scrollTop = this._getScrollPosition(); const screenItemsLen = this._screenItemsLen; const getRow = this._getRow.bind(this);