Permalink
Browse files

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

  • Loading branch information...
1 parent e1e9ec3 commit 566f347b8fcfa658eed28d51a56b94675792423e @fbrusatti fbrusatti committed Jan 27, 2014
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;

0 comments on commit 566f347

Please sign in to comment.