Test Setup Failed
Push — master ( ae6bbc...554531 )
by
unknown
09:25 queued 04:41
created

src/Oro/Bundle/UIBundle/Resources/public/js/app/modules/swipe-actions-module.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 16
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
wmc 3
nc 1
mnd 1
bc 3
fnc 2
dl 0
loc 16
rs 10
bpm 1.5
cpm 1.5
noi 1
c 1
b 0
f 1
1
define(function(require) {
2
    'use strict';
3
4
    var BaseController = require('oroui/js/app/controllers/base/controller');
5
    var _ = require('underscore');
6
    /**
7
     * Init layout's handlers and listeners
8
     */
9
    if (_.isMobile()) {
10
        BaseController.loadBeforeAction([
11
            'oroui/js/swipe-action-manager'
12
        ], function(SwipeActionsManager) {
13
            new SwipeActionsManager('body');
0 ignored issues
show
Unused Code Best Practice introduced by
The object created with new SwipeActionsManager("body") is not used but discarded. Consider invoking another function instead of a constructor if you are doing this purely for side effects.
Loading history...
14
        });
15
    }
16
});
17