diff options
| author | XhmikosR <[email protected]> | 2017-07-27 13:39:55 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-08-23 00:05:38 +0300 |
| commit | ef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch) | |
| tree | fa0efba9d60de5570eeac2b7ae0262916d64401d /js/src/util.js | |
| parent | 0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff) | |
| download | bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.tar.xz bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.zip | |
Tweak ESLint rules.
Diffstat (limited to 'js/src/util.js')
| -rw-r--r-- | js/src/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/util.js b/js/src/util.js index 387c7d2ed..69fb8283c 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -42,7 +42,7 @@ const Util = (($) => { if ($(event.target).is(this)) { return event.handleObj.handler.apply(this, arguments) // eslint-disable-line prefer-rest-params } - return undefined + return undefined // eslint-disable-line no-undefined } } } @@ -55,7 +55,7 @@ const Util = (($) => { const el = document.createElement('bootstrap') for (const name in TransitionEndEvent) { - if (el.style[name] !== undefined) { + if (typeof el.style[name] !== 'undefined') { return { end: TransitionEndEvent[name] } @@ -138,7 +138,7 @@ const Util = (($) => { typeCheckConfig(componentName, config, configTypes) { for (const property in configTypes) { - if (configTypes.hasOwnProperty(property)) { + if (Object.prototype.hasOwnProperty.call(configTypes, property)) { const expectedTypes = configTypes[property] const value = config[property] const valueType = value && isElement(value) ? |
