Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Date own props to new constructor if necessary #12

Merged
merged 3 commits into from
Nov 28, 2012

Conversation

briancavalier
Copy link
Member

See #11. Jared and I paired on this today, but didn't test in older IE yet. What do you think?

@@ -129,32 +133,32 @@ define(['./lib/_base'], function (base) {
}

function checkIsoCompat () {
if (!isoCompat()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch to hoist the Date_ function out of the if block

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing: yep, will do. Hmmm, hoisting p, normally I'd say yes, but in this case, it's the only var in the function, and it'd need to be hoisted quite a distance. Ah, maybe hoisting p plus moving the new Date constructor to the bottom would help.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, that's weird ... github attached this comment to the wrong line. I reloaded the page and the comment had moved!

@unscriptable
Copy link
Member

thanks guys!

unscriptable added a commit that referenced this pull request Nov 28, 2012
Copy Date own props to new constructor if necessary
@unscriptable unscriptable merged commit f45e8c4 into master Nov 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants