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

fix(datepicker): Remove unneeded date creation #1595

Closed
wants to merge 1 commit into from

Conversation

Foxandxss
Copy link
Contributor

When I was rewriting this monster directive, I saw that we are getting days[i] which is already a Date and creating a new Date out of it. If it is already a date, why are we re-wrapping it? Tests pass.

@pkozlowski-opensource
Copy link
Member

LGTM. @bekos WDYT?

@bekos
Copy link
Contributor

bekos commented Jan 17, 2014

Yes. Merge it :-)

@Foxandxss
Copy link
Contributor Author

yeey :P Maybe it cuts some milliseconds avoiding the creation of 30-40 extra dates :P

@pkozlowski-opensource
Copy link
Member

Landed, thnx @Foxandxss !

@Foxandxss Foxandxss deleted the datepicker_date branch January 18, 2014 11:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants