Skip to content

Commit

Permalink
Fix domain month when using day subDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 23, 2013
1 parent 7e3652a commit f0cc89e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.0.5 [2013-07-23]

* [fix] Fix domain month when using day subDomain

## v3.0.4 [2013-07-20]

* [Fix] Fix calendar crashing in IE when using d3.js >= v3.2.4
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cal-heatmap",
"version": "3.0.4",
"version": "3.0.5",
"main": ["./cal-heatmap.js", "./cal-heatmap.css"],
"dependencies": {
"d3": "~v3.0.6"
Expand Down
4 changes: 2 additions & 2 deletions cal-heatmap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! cal-heatmap v3.0.4 (Sat Jul 20 2013 18:04:49)
/*! cal-heatmap v3.0.5 (Tue Jul 23 2013 14:56:14)
* ---------------------------------------------
* Cal-Heatmap is a javascript module to create calendar heatmap to visualize time series data, a la github contribution graph
* https://github.com/kamisama/cal-heatmap
Expand Down Expand Up @@ -270,7 +270,7 @@ var CalHeatMap = function() {
d = new Date(d);
switch(self.options.domain) {
case "year" : return 54;
case "month" : return self.getWeekNumber(new Date(d.getFullYear(), d.getMonth()+1, 0)) - self.getWeekNumber(d) + 1;
case "month" : return 6; //return self.getWeekNumber(new Date(d.getFullYear(), d.getMonth()+1, 0)) - self.getWeekNumber(d) + 1;
case "week" : return 1;
}
},
Expand Down
4 changes: 2 additions & 2 deletions cal-heatmap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cal-heatmap.source-map.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cal-heatmap",
"version": "3.0.4",
"version": "3.0.5",
"description": "Cal-Heatmap is a javascript module to create calendar heatmap to visualize time series data, a la github contribution graph",
"keywords": [
"calendar",
Expand Down
2 changes: 1 addition & 1 deletion src/cal-heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ var CalHeatMap = function() {
d = new Date(d);
switch(self.options.domain) {
case "year" : return 54;
case "month" : return self.getWeekNumber(new Date(d.getFullYear(), d.getMonth()+1, 0)) - self.getWeekNumber(d) + 1;
case "month" : return 6; //return self.getWeekNumber(new Date(d.getFullYear(), d.getMonth()+1, 0)) - self.getWeekNumber(d) + 1;
case "week" : return 1;
}
},
Expand Down

0 comments on commit f0cc89e

Please sign in to comment.