Use createEnum

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-15 21:07:40 +05:30 committed by Bruno Windels
parent 33ac34b04e
commit bbeb909bdc

View file

@ -14,10 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
export class ScrollDirection { import {createEnum} from "../../../../utils/enum.js";
static get downwards() { return 1; }
static get upwards() { return -1; } export const ScrollDirection = createEnum("upwards", "downwards");
}
export class ItemRange { export class ItemRange {
constructor(topCount, renderCount, bottomCount) { constructor(topCount, renderCount, bottomCount) {