Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Look for moment on the global object #133

Merged
merged 3 commits into from
May 21, 2015
Merged

Conversation

kitbrennan90
Copy link
Contributor

In Node, moment is loaded via the 'global' object instead of the 'window' object. This change checks which object moment is loaded on, and uses the appropriate object.

Fixes the following issue: #79

@kitbrennan90 kitbrennan90 mentioned this pull request May 21, 2015
@urish
Copy link
Owner

urish commented May 21, 2015

Hi, thanks for the contribution!

Please apply the global patch at line 561 instead.

@kitbrennan90
Copy link
Contributor Author

Hi urish, no problem - this should now be fixed.

urish added a commit that referenced this pull request May 21, 2015
Support moment loaded via Node
@urish urish merged commit f4f79fd into urish:master May 21, 2015
@urish
Copy link
Owner

urish commented May 21, 2015

Thanks!

@urish urish changed the title Support moment loaded via Node Look for moment on the global object May 23, 2015
@urish
Copy link
Owner

urish commented Jul 28, 2015

Released as 0.10.2

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.

None yet

2 participants