Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 35da10...4f70eb )
by Pierre
05:44
created

discount.js ➔ ... ➔ ItemView.extend.initialize   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
define(['core/view'], function(ItemView) {
2
    return ItemView.extend({
3
        el: '#discount',
4
        ui: {
5
            'value': '.discount-value',
6
            'type': '.discount-type'
7
        },
8
        events: {
9
            'keyup @ui.value': 'setDiscount',
10
            'change @ui.type': 'setDiscount',
11
        },
12
        setDiscount: function() {
13
            this.model.set('value', parseFloat(this.ui.value.val()));
14
            this.model.set('type', this.ui.type.val());
15
16
            this.getOption('collection').trigger('change');
17
        },
18
        initialize: function() {
19
            this.setDiscount();
20
        }
21
    });
22
});