Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix that element has loading image #3 #5

Merged
merged 4 commits into from
Nov 30, 2020

Conversation

daybrush
Copy link
Member

Issue

#3

Details

Copy link
Member

@mixed mixed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩🤩🤩🤩🤩

public isReady = false;
public isPreReady = false;
public hasDataSize = false;
public hasLoading = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have changed it for testing, how about using getter?

@@ -72,5 +72,6 @@ export function expectOrders(events: EventType[], values: string[]) {
// Then
const eventNames = events.map(e => e.eventType);

console.log(eventNames);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@@ -8,13 +8,9 @@ import Loader from "./Loader";

export default class ImageLoader extends Loader<HTMLImageElement> {
public static EVENTS = ["load", "error"];
public isPreReady() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has the interface changed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mixed

loader is a class that can only be used inside, this method is used internally.

Copy link
Member

@WoodNeck WoodNeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daybrush daybrush merged commit fe7190b into naver:main Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants