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(Flicking): Getting previous panel index number on non-circular mode #117

Closed
wants to merge 3 commits into from

Conversation

netil
Copy link
Member

@netil netil commented Feb 2, 2016

Issue

#116

Details

Added to assign panel.no value when instantiate with defaultIndex option value

Preferred reviewers

@jongmoon @kishu

Added to assign panel.no value when instantiate with defaultIndex option value

Ref naver#116
@netil netil added this to the 1.1.0 milestone Feb 2, 2016
@netil netil self-assigned this Feb 2, 2016
@jongmoon
Copy link
Contributor

jongmoon commented Feb 2, 2016

I'm still confusing words (panel.index and panel.no) whenever I see the code.
Because I think 'index' is too common meaning word to be exposed to users.

Anyway LGTM!

@taihoon
Copy link

taihoon commented Feb 3, 2016

var f = new eg.Flicking("#mflick", {
  defaultIndex: 0,
  circular : false
});

f.getPrevIndex(); //null

The API document states getPrevIndex() returns type of number.
http://naver.github.io/egjs/latest/doc/eg.Flicking.html#getPrevIndex

However, when defaultIndex was given 0 it returns null

@netil
Copy link
Member Author

netil commented Feb 3, 2016

@kishu agree. I'll update api comments in case of null.

Added null return type on api comments
Merged master update
Added null return type on api comments
@taihoon
Copy link

taihoon commented Feb 15, 2016

LGTM

@netil netil closed this in fb312c4 Feb 15, 2016
happyhj added a commit to happyhj/egjs that referenced this pull request Feb 15, 2016
# The first commit's message is:
test(scrollEnd): add "scroll after rotate" test

run test for internal logic only on PhantomJS

ref naver#123

# The 2nd commit message will be skipped:

#	Update Gruntfile.js

# The 3rd commit message will be skipped:

#	chore(bower): change outlayer version
#
#	ref naver#87

# The 4th commit message will be skipped:

#	feat(flicking): Support previewPadding resize
#
#	Support change of previewPadding option after the initialization
#
#	Ref naver#13
#	Close naver#105

# The 5th commit message will be skipped:

#	fix(Flicking): Getting previous panel index number on non-circular mode
#
#	Added to assign panel.no value when instantiate with defaultIndex option value
#
#	Fix naver#116
#	Close naver#117

# The 6th commit message will be skipped:

#	feat(infiniteGrid): Change the order of item in case of prepending
#
#	ref naver#98

# The 7th commit message will be skipped:

#	fix(infiniteGrid): According to viewport, item order is different
#
#	sometimes, item order is wrong because outerHeight is floating value.
#
#	ref naver#102

# The 8th commit message will be skipped:

#	feat(infiniteGrid): Change items to be removed in case of prepending
#
#	ref naver#101

# The 9th commit message will be skipped:

#	feat(infiniteGrid): remove param.croppedDistance in prepend event
#
#	ref naver#99
@netil netil deleted the flicking#116 branch February 17, 2016 10:42
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