Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Version 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 13, 2016
1 parent d0599e7 commit b0af8cb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/daterangepicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* knockout-daterangepicker
* version: 0.0.7
* version: 0.0.8
* authors: Sensor Tower team
* license: MIT
* https://sensortower.github.io/daterangepicker
Expand Down
8 changes: 3 additions & 5 deletions dist/daterangepicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* knockout-daterangepicker
* version: 0.0.7
* version: 0.0.8
* authors: Sensor Tower team
* license: MIT
* https://sensortower.github.io/daterangepicker
Expand All @@ -24,9 +24,6 @@
if (moment.localeData().firstDayOfWeek() !== dow) {
offset = dow - moment.localeData().firstDayOfWeek();
return this.patchCurrentLocale({
weekdays: ArrayUtils.rotateArray(moment.weekdays(), offset),
weekdaysMin: ArrayUtils.rotateArray(moment.weekdaysMin(), offset),
weekdaysShort: ArrayUtils.rotateArray(moment.weekdaysShort(), offset),
week: {
dow: dow,
doy: moment.localeData().firstDayOfYear()
Expand Down Expand Up @@ -83,6 +80,7 @@
function ArrayUtils() {}

ArrayUtils.rotateArray = function(array, offset) {
offset = offset % array.length;
return array.slice(offset).concat(array.slice(0, offset));
};

Expand Down Expand Up @@ -827,7 +825,7 @@
};

CalendarView.prototype.weekDayNames = function() {
return moment.weekdaysMin();
return ArrayUtils.rotateArray(moment.weekdaysMin(), moment.localeData().firstDayOfWeek());
};

CalendarView.prototype.inRange = function(date) {
Expand Down
2 changes: 1 addition & 1 deletion dist/daterangepicker.min.css

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

Loading

0 comments on commit b0af8cb

Please sign in to comment.