Skip to content

Commit

Permalink
Drop useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Mar 1, 2024
1 parent 1acc576 commit 6afae92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
import {
Component,
ElementRef,
EventEmitter,
Inject,
Input,
OnInit,
Output,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {CustomEventDetailMap, ModelAttributes, Natural, NaturalGalleryOptions} from '@ecodev/natural-gallery-js';
import {DOCUMENT} from '@angular/common';

/** @dynamic */
@Component({
selector: 'natural-gallery',
templateUrl: './natural-gallery.component.html',
styleUrls: ['./natural-gallery.component.scss'],
// eslint-disable-next-line @angular-eslint/use-component-view-encapsulation
encapsulation: ViewEncapsulation.None,
standalone: true,
})
export class NaturalGalleryComponent<T extends ModelAttributes = ModelAttributes> implements OnInit {
Expand Down Expand Up @@ -46,8 +32,6 @@ export class NaturalGalleryComponent<T extends ModelAttributes = ModelAttributes
this.gallery.then(gallery => gallery.setItems(items));
}

public constructor(@Inject(DOCUMENT) private readonly document: Document) {}

public ngOnInit(): void {
setTimeout(() => {
const gallery = new Natural<T>(this.galleryElement.nativeElement, this.options, this.scrollable);
Expand Down

0 comments on commit 6afae92

Please sign in to comment.