From 981e3d51975161abe101ede1e4a082d784fc74ed Mon Sep 17 00:00:00 2001 From: HardlyMirage Date: Wed, 6 Jul 2016 23:19:27 +0500 Subject: [PATCH] Fix for "moment is not defined" in strict mode In strict mode, no access to global variables is permitted, so attempting to assign to an undefined variable results in an error being thrown. --- vue-moment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue-moment.js b/vue-moment.js index c2d5adc..e94aeda 100644 --- a/vue-moment.js +++ b/vue-moment.js @@ -40,8 +40,8 @@ module.exports = { } function parse() { - var args = Array.prototype.slice.call(arguments); - method = args.shift(); + var args = Array.prototype.slice.call(arguments), + method = args.shift(); switch (method) { case 'add':