• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

divio / django-cms / #29546

24 Nov 2022 11:39AM UTC coverage: 77.399%. Remained the same
#29546

push

travis-ci

web-flow
build: bump loader-utils from 1.4.0 to 1.4.2 (#7435)

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fabian Braun <fsbraun@gmx.de>

1074 of 1547 branches covered (69.42%)

2565 of 3314 relevant lines covered (77.4%)

33.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/cms/static/cms/js/modules/keyboard.js
1
import keyboard from 'keyboardjs';
2
import $ from 'jquery';
3

4
/**
5
 * @function override
6
 * @private
7
 * @param {Function} originalFunction to override
8
 * @param {Function} functionBuilder function that accepts a function to wrap
9
 * @returns {Function}
10
 */
11
function override(originalFunction, functionBuilder) {
12
    var newFn = functionBuilder(originalFunction);
1✔
13

14
    newFn.prototype = originalFunction.prototype;
1✔
15
    return newFn;
1✔
16
}
17

18
/**
19
 * Override keyboardjs methods to disallow running callbacks
20
 * if input is focused
21
 */
22
keyboard._applyBindings = override(keyboard._applyBindings, function(originalBind) {
1✔
23
    return function(event) {
1✔
24
        if ($(':focus').is('input, textarea, select, [contenteditable]')) {
×
25
            return true;
×
26
        }
27

28
        originalBind.call(this, event);
×
29
    };
30
});
31

32
export default keyboard;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc