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

Changes necessary to compile under JS strict mode #269

Closed
wants to merge 4 commits into from

Conversation

jstray
Copy link

@jstray jstray commented Jul 31, 2017

Cannot declare variables without var.

@@ -11,7 +11,7 @@ var _session = {
emSize: 10,
width: 640,
timerOn: (localStorage.hasOwnProperty("model") === true),
nowOffset: getTZOffset(now),
nowOffset: now.getTimezoneOffset(),
Copy link
Author

@jstray jstray Aug 1, 2017

Choose a reason for hiding this comment

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

Actually this line I am not sure about. I couldn't find getTZOffset() anywhere in the code base -- is this an equivalent replacement? Perhaps not, because I don't think the "your current time zone" format looks right. After this change it's in minutes, rather than a string like "-07:00"

Copy link
Author

Choose a reason for hiding this comment

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

Ok after further research I am sure this is wrong. Is there any way to exclude a single file from a commit... or should I just add a new commit which fixes, and then add it to the PR?

@petulla
Copy link

petulla commented Aug 1, 2017

These var declarations look good. I made similar changes in a working branch that converts the code to es2015 spec.

@jstray
Copy link
Author

jstray commented Aug 1, 2017

Resubmitting a new PR with the timezone thing reverted.

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