aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/meteor/export.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/meteor/export.js')
-rw-r--r--library/moment/meteor/export.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/moment/meteor/export.js b/library/moment/meteor/export.js
new file mode 100644
index 000000000..2600fce19
--- /dev/null
+++ b/library/moment/meteor/export.js
@@ -0,0 +1,6 @@
+// moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable
+moment = this.moment;
+try {
+ delete this.moment;
+} catch (e) {
+}