MadMG / moment-jdateformatparser

Translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.
MIT License
58 stars 29 forks source link

Hook moment after moment has loaded by requiring moment asynchronously #3

Closed stephenliang closed 9 years ago

stephenliang commented 9 years ago

The parser should require moment asynchronously to avoid being a situation where moment is loaded after jdateformat is.

Should fix this issue:

Uncaught Error: Module name "moment" has not been loaded yet for context:

MadMG commented 9 years ago

Thanks @stephenliang!

herom commented 9 years ago

:+1: