Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
moment-timezone.js for Parse.com
// snip
/*global define*/
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
// module.exports = factory(require('moment')); // Node
module.exports = factory(require('cloud/moment-with-langs.js')); // modify for Parse.com
} else {
factory(root.moment); // Browser
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.