Permalink
Browse files

Fix broken specs for earliest/latest not set

  • Loading branch information...
1 parent 445354a commit f0298882e3ac54daaed24fcca5d04260ac8f79ab @kneath committed Oct 20, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/timeframe.js
View
@@ -244,7 +244,7 @@ var Timeframe = new Class({
Marks a given date as the endpoint for the range
*/
markEndPoint: function(date){
- if (date < this.options.earliest || date > this.options.latest) return;
+ if ((this.options.earliest != null && date < this.options.earliest) || (this.options.latest != null && date > this.options.latest)) return;
// Are we just starting?
if (this.range.get('begining') == null){

0 comments on commit f029888

Please sign in to comment.