Skip to content

Commit

Permalink
Check for options object
Browse files Browse the repository at this point in the history
Without this check we would have to pass an empty object as the second param during the plugin initialization.
  • Loading branch information
n3gotium committed Mar 1, 2016
1 parent d9297f1 commit 530a827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue-moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
},
});

if (options.moment) {
if (options && options.moment) {
moment = options.moment
}

Expand Down

1 comment on commit 530a827

@BrockReece
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

Please sign in to comment.