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

feat(infiniteGrid): remove outlayer dependency #292

Closed
wants to merge 8 commits into from

Conversation

sculove
Copy link
Contributor

@sculove sculove commented Jul 13, 2016

Issue

#282

Details

remove outlayer dependency

  • fix infiniteGrid component
  • fix concat build task
  • fix demo files
  • remove test file.
    • I will send pr for test
    • change test code style to QUnit 2.0
  • some code refactoring

Preferred reviewers

@naver/egjs-dev

@sculove sculove added this to the 1.3.0 milestone Jul 13, 2016
@sculove sculove self-assigned this Jul 13, 2016
@sculove
Copy link
Contributor Author

sculove commented Jul 14, 2016

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;
Copy link

@taihoon taihoon Jul 29, 2016

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.

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. thanks

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!

_itemize: function(elements, groupKey, isAppend) {
var dummyTop = -this._clientHeight + "px";
return elements.map(function(v) {
v.style.top = dummyTop;
Copy link

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dummyTop is always same.

@taihoon
Copy link

taihoon commented Jul 29, 2016

LGTM

sculove added a commit that referenced this pull request Jul 29, 2016
@sculove sculove closed this Jul 29, 2016
@sculove sculove deleted the removeOutlayer#282 branch August 4, 2016 08:23
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.

None yet

3 participants