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(infiniteGrid): check image size when initializing #214

Merged
merged 1 commit into from
May 17, 2016
Merged

Conversation

sculove
Copy link
Contributor

@sculove sculove commented May 13, 2016

Issue

#178

Details

  • add _waitResource method
  • add defence code at event handlers
  • change _waitImageLoaded interface.
  • some code refactoring

Preferred reviewers

@naver/egjs-dev

@jongmoon
Copy link
Contributor

LGTM!

@@ -365,6 +368,9 @@ eg.module("infiniteGrid", ["jQuery", eg, window, document, "Outlayer"], function
if (this.resizeTimeout) {
clearTimeout(this.resizeTimeout);
}
if (this.core && !this.core._isLayoutInited) {
return;
}
Copy link

Choose a reason for hiding this comment

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

I think this if logic is duplicated. How about extract method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks

@taihoon
Copy link

taihoon commented May 17, 2016

LGTM!

@sculove sculove merged commit 3f0fddf into master May 17, 2016
@mixed mixed deleted the imageSize#178 branch May 26, 2016 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants