Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Fix #41 Jar shouldn't explode due to lack of salt
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Apr 18, 2013
1 parent b736cbb commit f7ca754
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h3>Backbone</h3>
</div>


<div id='footer-content' style='display: none'>Generated on Mon 08 Apr 2013 23:21:59 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 4.7.1.</div>
<div id='footer-content' style='display: none'>Generated on Thu 18 Apr 2013 22:15:58 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 4.7.1.</div>



Expand Down
2 changes: 1 addition & 1 deletion api/output/Backbone.PageableCollection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib/backbone-pageable.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
var BBColProto = Backbone.Collection.prototype;

function finiteInt (val, name) {
val *= 1;
if (!_.isNumber(val) || _.isNaN(val) || !_.isFinite(val) || ~~val !== val) {
throw new TypeError("`" + name + "` must be a finite integer");
}
Expand Down Expand Up @@ -574,7 +573,7 @@
if (firstPage === 0 && (currentPage < firstPage || (currentPage >= totalPages && totalPages > 0))) {
throw new RangeError("`currentPage` must be firstPage <= currentPage < totalPages if 0-based. Got " + currentPage + '.');
}
else if (firstPage === 1 && (currentPage < firstPage || currentPage > totalPages)) {
else if (firstPage === 1 && (currentPage < firstPage || currentPage > totalPages && totalPages > 0)) {
throw new RangeError("`currentPage` must be firstPage <= currentPage <= totalPages if 1-based. Got " + currentPage + '.');
}
}
Expand Down
Loading

0 comments on commit f7ca754

Please sign in to comment.