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

Commit

Permalink
fix(datepicker): remove unneeded date creation
Browse files Browse the repository at this point in the history
Closes #1595
  • Loading branch information
Foxandxss authored and pkozlowski-opensource committed Jan 18, 2014
1 parent 1b90a72 commit 68cb2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.position'])

var days = getDates(firstDate, numDates), labels = new Array(7);
for (var i = 0; i < numDates; i ++) {
var dt = new Date(days[i]);
var dt = days[i];
days[i] = makeDate(dt, format.day, (selected && selected.getDate() === dt.getDate() && selected.getMonth() === dt.getMonth() && selected.getFullYear() === dt.getFullYear()), dt.getMonth() !== month);
}
for (var j = 0; j < 7; j++) {
Expand Down

0 comments on commit 68cb2e5

Please sign in to comment.