Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug where pagination.pageCount was a string instead of a number

  • Loading branch information...
commit 566f347b8fcfa658eed28d51a56b94675792423e 1 parent e1e9ec3
@fbrusatti fbrusatti authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -1,7 +1,7 @@
module.exports = function(pagination, options) {
var type = options.hash.type || 'middle';
var ret = '';
- var pageCount = pagination.pageCount;
+ var pageCount = Number(pagination.pageCount);
var page = Number(pagination.page);
var limit;
if (options.hash.limit) limit = +options.hash.limit;
Please sign in to comment.
Something went wrong with that request. Please try again.