remcoros/ko.pager — pull request #3 by nadeemkhedr (2014-06-16 19:16:41+00:00)
Title: ko.pager accepts a select function that will be called when the user click on a page number

made ko.pager accept two extra parameters (selecFn & its context) (they are both optional)

Why observing current page wasn't suitable?

I was developing a complicated grid, so what i wanted is when the user clicks on a page number will call fetch result, but i also wanted when the user changes the filter to do many things including change the page number to be the 1st page and in the end will call fetch result, so i didn't want in that case to fire the observe method that i had setup