Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 22 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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'); |
||
|
|||
20 | } |
||
21 | }); |
||
22 | })(jQuery); |
||
23 |