This is one issue encountered in strict mode.
Related to #1179
var moment,
VERSION = "2.4.0",
+ global = this,
round = Math.round,
i,
// add `moment` as a global object via a string identifier,
// for Closure Compiler "advanced" mode
if (deprecate) {
- this.moment = function () {
+ global.moment = function () {
if (!warned && console && console.warn) {
warned = true;
console.warn(
return local_moment.apply(null, arguments);
};
} else {
- this['moment'] = moment;
+ global['moment'] = moment;
}
}