Skip to content

Commit

Permalink
Merge pull request #4 from fbrusatti/master
Browse files Browse the repository at this point in the history
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 fab892b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit fab892b

Please sign in to comment.