Skip to content
This repository was archived by the owner on May 17, 2018. It is now read-only.

Add method jumpToOffset()#77

Merged
wyuenho merged 2 commits intobackbone-paginator:masterfrom
keeyip:master
May 7, 2013
Merged

Add method jumpToOffset()#77
wyuenho merged 2 commits intobackbone-paginator:masterfrom
keeyip:master

Conversation

@keeyip
Copy link
Copy Markdown
Contributor

@keeyip keeyip commented May 1, 2013

It's convenient to just jump to an offset instead of the page number.
I've added unit tests as well.

Comment thread lib/backbone-pageable.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are not really "jumping" to an offset, you are getting a page based on an offset. Please change the method name to getPageByOffset.

@wyuenho
Copy link
Copy Markdown
Member

wyuenho commented May 5, 2013

Thanks and apologies for this belated response. This is a very good idea and a good PR. I'll merge as soon as you've fixed these couple of stylistic issues.

wyuenho added a commit that referenced this pull request May 7, 2013
Add method getPageByOffset()
@wyuenho wyuenho merged commit 4b64e77 into backbone-paginator:master May 7, 2013
@wyuenho
Copy link
Copy Markdown
Member

wyuenho commented May 7, 2013

Thank you!

@keeyip
Copy link
Copy Markdown
Contributor Author

keeyip commented May 7, 2013

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants