Skip to content

Commit

Permalink
ensure extent rounding does not miss time fragments at beginning or e…
Browse files Browse the repository at this point in the history
…nd of range
  • Loading branch information
nreese committed Feb 22, 2017
1 parent c0ff21c commit 9fc79c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions public/lib/bootstrap-addons/dist/js/bootstrap-addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ angular.module('BootstrapAddons')
if(snappedStop.getTime() >= scope.end.getTime()) {
snappedStop = scope.end;
}

//ensure extent rounding does not miss time fragments at beginning or end of range
if (scope.start.getTime() === start.getTime()) {
snappedStart = scope.start;
}
if (scope.end.getTime() === stop.getTime()) {
snappedStop = scope.end;
}

return [snappedStart, snappedStop];
}

Expand Down

This file was deleted.

0 comments on commit 9fc79c9

Please sign in to comment.