Then when I switch pages, browser gave me an error:
Uncaught TypeError: Cannot read property 'apply' of undefined
at r.fn.init.e.fn.twbsPagination (jquery.twbsPagination.min.js:9)
at Object.fetchCallback [as success] (whatever.js:58)
at i (jquery-3.2.1.min.js:2)
at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2)
at A (jquery-3.2.1.min.js:4)
at XMLHttpRequest. (jquery-3.2.1.min.js:4)
I thought it was my mistake, but finally I found the "getCurrentPage" have no implementation in 1.4.1, but it do have implementation in the version which example site are using.
After replacing with the example one, the code runs very well.
So I am wondering if it is a bug?
According to examples, I can reinitiate pagination like this:
Then when I switch pages, browser gave me an error:
I thought it was my mistake, but finally I found the "getCurrentPage" have no implementation in 1.4.1, but it do have implementation in the version which example site are using. After replacing with the example one, the code runs very well. So I am wondering if it is a bug?
======================================== Version: Release 1.4.1 from Github release + jQuery 3.2.1 + bootstrap 3.3.7