Permalink
Browse files

Merge pull request #4 from fbrusatti/master

Fix bug where pagination.pageCount was a string instead of a number
  • Loading branch information...
olalonde committed Feb 27, 2014
2 parents e1e9ec3 + 566f347 commit fab892bd118b0b82926bed18a599dce864cd3808
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -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 fab892b

Please sign in to comment.