]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
[Ref #15881] Use Explicit Values rather than Chain 15923/head
authorKevin Kirsche <kkirsche@ansfederal.com>
Wed, 25 Feb 2015 17:19:11 +0000 (12:19 -0500)
committerKevin Kirsche <kkirsche@ansfederal.com>
Wed, 25 Feb 2015 17:19:11 +0000 (12:19 -0500)
[Ref #15881] Use Explicit Values for javascript variables rather than chained ones.

From https://github.com/twbs/bootstrap/pull/15881#discussion_r25330647

js/affix.js
js/carousel.js
js/modal.js
js/tooltip.js

index aaebc8c0f681d55b7ad35dd01e6f312664b5e310..59584ec855caef57aca361c4c63aee696c542680 100644 (file)
@@ -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()
index 450e1812ee3d1c3936793fba57cf3399bd05fb12..c41a0bcb80e7e631513a135436c6b30d7f5cd0c5 100644 (file)
     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))
index c45437dfbea120c03157eaae64f7442e1963df55..929cd991fc686832788652ebed1a18a0c18d572b 100644 (file)
@@ -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
 
index fb2ff7b9a085987b356ed0e9f4ab44430645e102..0467c71d18dc3abe7942f884862de521515142dd 100644 (file)
   // ===============================
 
   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)