Completed
Push — development ( f93eb8...ffa1a0 )
by Thomas
20s
created

htdocs/theme/frontend/js/plugins/jquery.hello-world.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 22
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 22
rs 10
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A $.plugin(ꞌocHelloWorldꞌ).init 0 8 1
1
;(function($) {
2
    'use strict';
3
4
    $.plugin('ocHelloWorld', {
5
        /**
6
         * Default plugin initialisation function.
7
         * Registers an event listener on the change event.
8
         * When it's triggered, the parent form will be submitted.
9
         *
10
         * @public
11
         * @method init
12
         */
13
        init: function () {
14
            var me = this;
15
16
            // Applies HTML data attributes to the current options
17
            me.applyDataAttributes();
18
19
            console.log('Hello World');
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
20
        }
21
    });
22
})(jQuery);
23