Skip to content

Commit

Permalink
[Ref twbs#15881] Use Explicit Values rather than Chain
Browse files Browse the repository at this point in the history
[Ref twbs#15881] Use Explicit Values for javascript variables rather than chained ones.

From twbs#15881 (comment)
  • Loading branch information
Kevin Kirsche committed Feb 25, 2015
1 parent 804457c commit 238be65
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions js/affix.js
Original file line number Diff line number Diff line change
@@ -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()
8 changes: 4 additions & 4 deletions js/carousel.js
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 1 addition & 1 deletion js/modal.js
Original file line number Diff line number Diff line change
@@ -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

10 changes: 5 additions & 5 deletions js/tooltip.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 238be65

Please sign in to comment.