babiz / express-handlebars-paginate

BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Debug the next button & class active statement #1

Closed zachary95 closed 9 years ago

zachary95 commented 9 years ago

parseFloat() on line 66 was left out which means n was equal to 21 > 211 > 2111 instead of 3 > 4 > 5. I also use "==" for more flexibility (no needs to check if vars are absolutely numbers, which cause many bugs when they are string instead)