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

Remove#461 #464

Merged
merged 7 commits into from
Mar 6, 2017
Merged

Remove#461 #464

merged 7 commits into from
Mar 6, 2017

Conversation

sculove
Copy link
Contributor

@sculove sculove commented Mar 4, 2017

Issue

#461, #454

Details

Preferred reviewers

@netil

return v;
}));
this._waitResource(items, isRefresh);
layout: function(isRelayout, addItems, isAppend) {
Copy link
Member

Choose a reason for hiding this comment

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

The params description should be declared o API doc
http://naver.github.io/egjs/latest/doc/eg.InfiniteGrid.html#layout

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I apply it in #465 pr
also, I will add comment.

if (isInit) {
$.each(addItems, function(i, v) {
v.el.style.position = "absolute";
});
Copy link
Member

Choose a reason for hiding this comment

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

addItems seems to be element array. Just wrapping and executing once will be more efficient.

$(addItems).css("position", "absolute");

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I will apply in #465 pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I restore it.
we should process item.el. so I didn't apply it.

var max = -Infinity;
$.each(this._getColItems(false), function(i, v) {
if (v && v.position.y + v.size.height > max) {
max = v.position.y + v.size.height;
Copy link
Member

Choose a reason for hiding this comment

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

Duplication happens.
Just set local variable to sustain v.position.y + v.size.height and use that for reassignment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I will apply in #465 pr

@sculove sculove merged commit 7f53f57 into naver:master Mar 6, 2017
@sculove sculove deleted the remove#461 branch March 6, 2017 06:59
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.

2 participants