summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2015-01-22 22:36:20 -0500
committerThomas Park <thomas@thomaspark.me>2015-01-22 22:36:20 -0500
commit25f57ee1fe9773b08d95d5f7d6ba93e2db048f8f (patch)
tree8e4448eed6bce0fa1288321e18c2b4675b8cb393 /bower_components/bootstrap-sass-official/assets/javascripts/bootstrap
parent0a7f9e5bb684c185d309d1ac1079dfb8b36af33c (diff)
update bootstrap to 3.3.2
Diffstat (limited to 'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap')
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js8
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js17
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js8
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js20
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js6
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js26
-rw-r--r--bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js4
12 files changed, 52 insertions, 67 deletions
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js
index deea2948..aaebc8c0 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: affix.js v3.3.1
+ * Bootstrap: affix.js v3.3.2
* http://getbootstrap.com/javascript/#affix
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -28,7 +28,7 @@
this.checkPosition()
}
- Affix.VERSION = '3.3.1'
+ Affix.VERSION = '3.3.2'
Affix.RESET = 'affix affix-top affix-bottom'
@@ -53,7 +53,7 @@
var colliderTop = initializing ? scrollTop : position.top
var colliderHeight = initializing ? targetHeight : height
- if (offsetTop != null && colliderTop <= offsetTop) return 'top'
+ if (offsetTop != null && scrollTop <= offsetTop) return 'top'
if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
return false
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js
index 7b775dd0..e8212caf 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: alert.js v3.3.1
+ * Bootstrap: alert.js v3.3.2
* http://getbootstrap.com/javascript/#alerts
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -18,7 +18,7 @@
$(el).on('click', dismiss, this.close)
}
- Alert.VERSION = '3.3.1'
+ Alert.VERSION = '3.3.2'
Alert.TRANSITION_DURATION = 150
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js
index 7b1e134b..4d569017 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: button.js v3.3.1
+ * Bootstrap: button.js v3.3.2
* http://getbootstrap.com/javascript/#buttons
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -19,7 +19,7 @@
this.isLoading = false
}
- Button.VERSION = '3.3.1'
+ Button.VERSION = '3.3.2'
Button.DEFAULTS = {
loadingText: 'loading...'
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js
index 282d618f..450e1812 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: carousel.js v3.3.1
+ * Bootstrap: carousel.js v3.3.2
* http://getbootstrap.com/javascript/#carousel
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -30,7 +30,7 @@
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
}
- Carousel.VERSION = '3.3.1'
+ Carousel.VERSION = '3.3.2'
Carousel.TRANSITION_DURATION = 600
@@ -70,8 +70,11 @@
}
Carousel.prototype.getItemForDirection = function (direction, active) {
- var delta = direction == 'prev' ? -1 : 1
var activeIndex = this.getItemIndex(active)
+ var willWrap = (direction == 'prev' && activeIndex === 0)
+ || (direction == 'next' && activeIndex == (this.$items.length - 1))
+ if (willWrap && !this.options.wrap) return active
+ var delta = direction == 'prev' ? -1 : 1
var itemIndex = (activeIndex + delta) % this.$items.length
return this.$items.eq(itemIndex)
}
@@ -116,14 +119,8 @@
var $next = next || this.getItemForDirection(type, $active)
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
- var fallback = type == 'next' ? 'first' : 'last'
var that = this
- if (!$next.length) {
- if (!this.options.wrap) return
- $next = this.$element.find('.item')[fallback]()
- }
-
if ($next.hasClass('active')) return (this.sliding = false)
var relatedTarget = $next[0]
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js
index b2cc1253..2bc30e7b 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: collapse.js v3.3.1
+ * Bootstrap: collapse.js v3.3.2
* http://getbootstrap.com/javascript/#collapse
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -28,7 +28,7 @@
if (this.options.toggle) this.toggle()
}
- Collapse.VERSION = '3.3.1'
+ Collapse.VERSION = '3.3.2'
Collapse.TRANSITION_DURATION = 350
@@ -46,7 +46,7 @@
if (this.transitioning || this.$element.hasClass('in')) return
var activesData
- var actives = this.$parent && this.$parent.find('> .panel').children('.in, .collapsing')
+ var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
if (actives && actives.length) {
activesData = actives.data('bs.collapse')
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js
index 69a40f68..200e1c67 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: dropdown.js v3.3.1
+ * Bootstrap: dropdown.js v3.3.2
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -19,7 +19,7 @@
$(element).on('click.bs.dropdown', this.toggle)
}
- Dropdown.VERSION = '3.3.1'
+ Dropdown.VERSION = '3.3.2'
Dropdown.prototype.toggle = function (e) {
var $this = $(this)
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js
index 93891aa4..e7704b8f 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: modal.js v3.3.1
+ * Bootstrap: modal.js v3.3.2
* http://getbootstrap.com/javascript/#modals
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -30,7 +30,7 @@
}
}
- Modal.VERSION = '3.3.1'
+ Modal.VERSION = '3.3.2'
Modal.TRANSITION_DURATION = 300
Modal.BACKDROP_TRANSITION_DURATION = 150
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js
index db272bde..be65b11a 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: popover.js v3.3.1
+ * Bootstrap: popover.js v3.3.2
* http://getbootstrap.com/javascript/#popovers
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -19,7 +19,7 @@
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
- Popover.VERSION = '3.3.1'
+ Popover.VERSION = '3.3.2'
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
placement: 'right',
@@ -86,18 +86,12 @@
function Plugin(option) {
return this.each(function () {
- var $this = $(this)
- var data = $this.data('bs.popover')
- var options = typeof option == 'object' && option
- var selector = options && options.selector
+ var $this = $(this)
+ var data = $this.data('bs.popover')
+ var options = typeof option == 'object' && option
if (!data && option == 'destroy') return
- if (selector) {
- if (!data) $this.data('bs.popover', (data = {}))
- if (!data[selector]) data[selector] = new Popover(this, options)
- } else {
- if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
- }
+ if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
if (typeof option == 'string') data[option]()
})
}
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js
index c468262f..0987177f 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: scrollspy.js v3.3.1
+ * Bootstrap: scrollspy.js v3.3.2
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -30,7 +30,7 @@
this.process()
}
- ScrollSpy.VERSION = '3.3.1'
+ ScrollSpy.VERSION = '3.3.2'
ScrollSpy.DEFAULTS = {
offset: 10
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js
index d59827f2..ddb7fc9c 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: tab.js v3.3.1
+ * Bootstrap: tab.js v3.3.2
* http://getbootstrap.com/javascript/#tabs
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -17,7 +17,7 @@
this.element = $(element)
}
- Tab.VERSION = '3.3.1'
+ Tab.VERSION = '3.3.2'
Tab.TRANSITION_DURATION = 150
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js
index cda147d9..1856df59 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js
@@ -1,9 +1,9 @@
/* ========================================================================
- * Bootstrap: tooltip.js v3.3.1
+ * Bootstrap: tooltip.js v3.3.2
* http://getbootstrap.com/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@@ -25,7 +25,7 @@
this.init('tooltip', element, options)
}
- Tooltip.VERSION = '3.3.1'
+ Tooltip.VERSION = '3.3.2'
Tooltip.TRANSITION_DURATION = 150
@@ -346,10 +346,10 @@
}
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
- return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
- placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
- /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
+ /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
}
@@ -445,18 +445,12 @@
function Plugin(option) {
return this.each(function () {
- var $this = $(this)
- var data = $this.data('bs.tooltip')
- var options = typeof option == 'object' && option
- var selector = options && options.selector
+ var $this = $(this)
+ var data = $this.data('bs.tooltip')
+ var options = typeof option == 'object' && option
if (!data && option == 'destroy') return
- if (selector) {
- if (!data) $this.data('bs.tooltip', (data = {}))
- if (!data[selector]) data[selector] = new Tooltip(this, options)
- } else {
- if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
- }
+ if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})
}
diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
index 68c2bd60..ec9ab682 100644
--- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
+++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js
@@ -1,8 +1,8 @@
/* ========================================================================
- * Bootstrap: transition.js v3.3.1
+ * Bootstrap: transition.js v3.3.2
* http://getbootstrap.com/javascript/#transitions
* ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
+ * Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */