diff options
| author | Heinrich Fenkart <[email protected]> | 2015-02-26 05:55:27 +0100 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2015-02-26 05:55:27 +0100 |
| commit | cac6cfcd845a33334f885a5500ab41252475f566 (patch) | |
| tree | 7581a2e881e01389a54193875f8edd9ca55911af | |
| parent | 1d34615758f04f20d7a2ab4d8f0e0c96aa9acfa8 (diff) | |
| parent | 238be65786ab78274dcc59c9de9fab27eec48304 (diff) | |
| download | bootstrap-cac6cfcd845a33334f885a5500ab41252475f566.tar.xz bootstrap-cac6cfcd845a33334f885a5500ab41252475f566.zip | |
Merge pull request #15923 from kkirsche/useExplicitVariableDeclaration
[Ref #15881] Use Explicit JS Variable Declarations rather than Chained
| -rw-r--r-- | js/affix.js | 4 | ||||
| -rw-r--r-- | js/carousel.js | 8 | ||||
| -rw-r--r-- | js/modal.js | 2 | ||||
| -rw-r--r-- | js/tooltip.js | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/js/affix.js b/js/affix.js index aaebc8c0f..59584ec85 100644 --- a/js/affix.js +++ b/js/affix.js @@ -21,8 +21,8 @@ .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) this.$element = $(element) - this.affixed = - this.unpin = + this.affixed = null + this.unpin = null this.pinnedOffset = null this.checkPosition() diff --git a/js/carousel.js b/js/carousel.js index 450e1812e..c41a0bcb8 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -17,10 +17,10 @@ this.$element = $(element) this.$indicators = this.$element.find('.carousel-indicators') this.options = options - this.paused = - this.sliding = - this.interval = - this.$active = + this.paused = null + this.sliding = null + this.interval = null + this.$active = null this.$items = null this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) diff --git a/js/modal.js b/js/modal.js index c45437dfb..929cd991f 100644 --- a/js/modal.js +++ b/js/modal.js @@ -17,7 +17,7 @@ this.options = options this.$body = $(document.body) this.$element = $(element) - this.$backdrop = + this.$backdrop = null this.isShown = null this.scrollbarWidth = 0 diff --git a/js/tooltip.js b/js/tooltip.js index fb2ff7b9a..0467c71d1 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -15,11 +15,11 @@ // =============================== var Tooltip = function (element, options) { - this.type = - this.options = - this.enabled = - this.timeout = - this.hoverState = + this.type = null + this.options = null + this.enabled = null + this.timeout = null + this.hoverState = null this.$element = null this.init('tooltip', element, options) |
