Completed
Push — next ( f93eb8...658180 )
by Thomas
12:00 queued 07:08
created

$.plugin(ꞌocHelloWorldꞌ).init   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 9.4285
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