]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix for meteor in IE8 (#2308)
authorIskren Chernev <iskren.chernev@gmail.com>
Fri, 17 Apr 2015 04:06:54 +0000 (21:06 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Fri, 17 Apr 2015 04:06:54 +0000 (21:06 -0700)
meteor/export.js

index e8870ceb5ababdc684d502d08041b692900bfb67..2600fce1994410f98162643b9f6d9706239f858f 100644 (file)
@@ -1,3 +1,6 @@
 // moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable
 moment = this.moment;
-delete this.moment;
+try {
+    delete this.moment;
+} catch (e) {
+}