From 530a8272b15db6ba2bec3d8a0f8214f9f56b586a Mon Sep 17 00:00:00 2001 From: n3gotium Date: Wed, 2 Mar 2016 01:02:36 +0300 Subject: [PATCH] Check for options object Without this check we would have to pass an empty object as the second param during the plugin initialization. --- vue-moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue-moment.js b/vue-moment.js index 97204e9..471e932 100644 --- a/vue-moment.js +++ b/vue-moment.js @@ -10,7 +10,7 @@ module.exports = { }, }); - if (options.moment) { + if (options && options.moment) { moment = options.moment }