From f219fee07b14ea1d37e197b1d80f5c7a8e3bc186 Mon Sep 17 00:00:00 2001 From: fat Date: Mon, 12 May 2014 21:15:16 -0700 Subject: [PATCH] versions --- js/affix.js | 4 +++- js/alert.js | 2 ++ js/button.js | 2 ++ js/carousel.js | 2 ++ js/collapse.js | 2 ++ js/dropdown.js | 2 ++ js/modal.js | 2 ++ js/popover.js | 2 ++ js/scrollspy.js | 2 ++ js/tab.js | 2 ++ js/tooltip.js | 2 ++ 11 files changed, 23 insertions(+), 1 deletion(-) diff --git a/js/affix.js b/js/affix.js index 270b039bf1..fc91936fbd 100644 --- a/js/affix.js +++ b/js/affix.js @@ -27,7 +27,9 @@ this.checkPosition() } - Affix.RESET = 'affix affix-top affix-bottom' + Affix.VERSION = '3.1.1' + + Affix.RESET = 'affix affix-top affix-bottom' Affix.DEFAULTS = { offset: 0 diff --git a/js/alert.js b/js/alert.js index ee2bd02e15..905aacc150 100644 --- a/js/alert.js +++ b/js/alert.js @@ -18,6 +18,8 @@ $(el).on('click', dismiss, this.close) } + Alert.VERSION = '3.1.1' + Alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') diff --git a/js/button.js b/js/button.js index bbce6690e8..aa71450722 100644 --- a/js/button.js +++ b/js/button.js @@ -19,6 +19,8 @@ this.isLoading = false } + Button.VERSION = '3.1.1' + Button.DEFAULTS = { loadingText: 'loading...' } diff --git a/js/carousel.js b/js/carousel.js index 2beae55e11..2a94a98382 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -28,6 +28,8 @@ .on('mouseleave', $.proxy(this.cycle, this)) } + Carousel.VERSION = '3.1.1' + Carousel.DEFAULTS = { interval: 5000, pause: 'hover', diff --git a/js/collapse.js b/js/collapse.js index 4ff5544c57..8d6e332890 100644 --- a/js/collapse.js +++ b/js/collapse.js @@ -22,6 +22,8 @@ if (this.options.toggle) this.toggle() } + Collapse.VERSION = '3.1.1' + Collapse.DEFAULTS = { toggle: true } diff --git a/js/dropdown.js b/js/dropdown.js index 1c24858ddd..bc671fef01 100644 --- a/js/dropdown.js +++ b/js/dropdown.js @@ -19,6 +19,8 @@ $(element).on('click.bs.dropdown', this.toggle) } + Dropdown.VERSION = '3.1.1' + Dropdown.prototype.toggle = function (e) { var $this = $(this) diff --git a/js/modal.js b/js/modal.js index ae1b8e5980..109f66d7d2 100644 --- a/js/modal.js +++ b/js/modal.js @@ -30,6 +30,8 @@ } } + Modal.VERSION = '3.1.1' + Modal.DEFAULTS = { backdrop: true, keyboard: true, diff --git a/js/popover.js b/js/popover.js index 9fff89320c..ea76720b89 100644 --- a/js/popover.js +++ b/js/popover.js @@ -19,6 +19,8 @@ if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') + Popover.VERSION = '3.1.1' + Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { placement: 'right', trigger: 'click', diff --git a/js/scrollspy.js b/js/scrollspy.js index 4ba733e787..74e016dc9f 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -32,6 +32,8 @@ this.process() } + ScrollSpy.VERSION = '3.1.1' + ScrollSpy.DEFAULTS = { offset: 10 } diff --git a/js/tab.js b/js/tab.js index 5a6b6a3318..0078453c54 100644 --- a/js/tab.js +++ b/js/tab.js @@ -17,6 +17,8 @@ this.element = $(element) } + Tab.VERSION = '3.1.1' + Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:not(.dropdown-menu)') diff --git a/js/tooltip.js b/js/tooltip.js index f688b30209..d985f96e34 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -25,6 +25,8 @@ this.init('tooltip', element, options) } + Tooltip.VERSION = '3.1.1' + Tooltip.DEFAULTS = { animation: true, placement: 'top',