-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat(infiniteGrid): remove outlayer dependency #292
Conversation
... and code refactoring ref #282
I add test case and use QUnit 2.0 style. |
@@ -454,7 +254,7 @@ eg.module("infiniteGrid", ["jQuery", eg, window, document, "Outlayer"], function | |||
* @return {Boolean} | |||
*/ | |||
isRecycling: function() { | |||
return this.core.options.count > 0 && this._isRecycling; | |||
return (this.options.count > 0) && this._isRecycling; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is same to isRecycling()
.
Overall, both of _isRecycling
and isRecycling()
called. I think only isRecyling()
shuld used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apply it!
_itemize: function(elements, groupKey, isAppend) { | ||
var dummyTop = -this._clientHeight + "px"; | ||
return elements.map(function(v) { | ||
v.style.top = dummyTop; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v.style.top = -this._clientHeight + "px";
Remove dummyTop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dummyTop is always same.
LGTM |
... and code refactoring Close #282
Issue
#282
Details
remove outlayer dependency
concat
build taskremove test file.I will send pr for testPreferred reviewers
@naver/egjs-dev