Issues (121)

src/js/components/caption.js (1 issue)

Labels
Severity
1
Mivhak.component('caption', {
0 ignored issues
show
The variable Mivhak seems to be never declared. If this is a global, consider adding a /** global: Mivhak */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
2
    template: '<div class="mivhak-caption"></div>',
3
    props: {
4
        text: null
5
    },
6
    created: function() {
7
        this.setText(this.text);
8
    },
9
    methods: {
10
        setText: function(text) {
11
            this.$el.html(text);
12
        }
13
    }
14
});