From 66e5c761eea0ce48fcf72844f043db4bcb43c6d9 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Tue, 17 Mar 2015 14:23:20 -0400 Subject: update bootstrap 3.3.4 --- .../bootstrap-sass-official/.bower.json | 10 +- .../bootstrap-sass-official/CHANGELOG.md | 6 + bower_components/bootstrap-sass-official/README.md | 50 +++-- .../assets/javascripts/bootstrap-sprockets.js | 4 +- .../assets/javascripts/bootstrap.js | 205 +++++++++++---------- .../assets/javascripts/bootstrap.min.js | 6 +- .../assets/javascripts/bootstrap/affix.js | 10 +- .../assets/javascripts/bootstrap/alert.js | 4 +- .../assets/javascripts/bootstrap/button.js | 4 +- .../assets/javascripts/bootstrap/carousel.js | 12 +- .../assets/javascripts/bootstrap/collapse.js | 14 +- .../assets/javascripts/bootstrap/dropdown.js | 6 +- .../assets/javascripts/bootstrap/modal.js | 67 ++++--- .../assets/javascripts/bootstrap/popover.js | 11 +- .../assets/javascripts/bootstrap/scrollspy.js | 37 ++-- .../assets/javascripts/bootstrap/tab.js | 6 +- .../assets/javascripts/bootstrap/tooltip.js | 30 +-- .../assets/javascripts/bootstrap/transition.js | 2 +- .../assets/stylesheets/bootstrap/_alerts.scss | 4 +- .../assets/stylesheets/bootstrap/_badges.scss | 11 +- .../bootstrap/_component-animations.scss | 3 +- .../assets/stylesheets/bootstrap/_dropdowns.scss | 2 +- .../assets/stylesheets/bootstrap/_forms.scss | 12 +- .../assets/stylesheets/bootstrap/_glyphicons.scss | 4 + .../assets/stylesheets/bootstrap/_jumbotron.scss | 2 +- .../assets/stylesheets/bootstrap/_modals.scss | 4 +- .../assets/stylesheets/bootstrap/_navbar.scss | 1 - .../assets/stylesheets/bootstrap/_navs.scss | 2 - .../stylesheets/bootstrap/_responsive-embed.scss | 16 +- .../assets/stylesheets/bootstrap/_scaffolding.scss | 12 ++ .../assets/stylesheets/bootstrap/_tooltip.scss | 1 - .../assets/stylesheets/bootstrap/_type.scss | 2 +- .../assets/stylesheets/bootstrap/_utilities.scss | 1 - .../assets/stylesheets/bootstrap/_variables.scss | 6 +- .../bootstrap-sass-official/package.json | 6 +- bower_components/bootstrap/.bower.json | 13 +- bower_components/bootstrap/Gruntfile.js | 42 +++-- bower_components/bootstrap/README.md | 12 +- bower_components/bootstrap/bower.json | 5 +- .../bootstrap/dist/css/bootstrap-theme.css | 2 +- .../bootstrap/dist/css/bootstrap-theme.min.css | 2 +- bower_components/bootstrap/dist/css/bootstrap.css | 48 +++-- .../bootstrap/dist/css/bootstrap.css.map | 2 +- .../bootstrap/dist/css/bootstrap.min.css | 4 +- bower_components/bootstrap/dist/js/bootstrap.js | 205 +++++++++++---------- .../bootstrap/dist/js/bootstrap.min.js | 6 +- .../bootstrap/grunt/bs-lessdoc-parser.js | 4 +- bower_components/bootstrap/grunt/configBridge.json | 1 + .../bootstrap/grunt/sauce_browsers.yml | 2 +- bower_components/bootstrap/js/affix.js | 10 +- bower_components/bootstrap/js/alert.js | 4 +- bower_components/bootstrap/js/button.js | 4 +- bower_components/bootstrap/js/carousel.js | 12 +- bower_components/bootstrap/js/collapse.js | 14 +- bower_components/bootstrap/js/dropdown.js | 6 +- bower_components/bootstrap/js/modal.js | 67 ++++--- bower_components/bootstrap/js/popover.js | 11 +- bower_components/bootstrap/js/scrollspy.js | 37 ++-- bower_components/bootstrap/js/tab.js | 6 +- bower_components/bootstrap/js/tooltip.js | 30 +-- bower_components/bootstrap/js/transition.js | 2 +- bower_components/bootstrap/less/alerts.less | 4 +- bower_components/bootstrap/less/badges.less | 11 +- .../bootstrap/less/component-animations.less | 3 +- bower_components/bootstrap/less/dropdowns.less | 2 +- bower_components/bootstrap/less/forms.less | 12 +- bower_components/bootstrap/less/glyphicons.less | 4 + bower_components/bootstrap/less/jumbotron.less | 2 +- bower_components/bootstrap/less/modals.less | 4 +- bower_components/bootstrap/less/navbar.less | 1 - bower_components/bootstrap/less/navs.less | 2 - .../bootstrap/less/responsive-embed.less | 16 +- bower_components/bootstrap/less/scaffolding.less | 12 ++ bower_components/bootstrap/less/tooltip.less | 1 - bower_components/bootstrap/less/type.less | 2 +- bower_components/bootstrap/less/utilities.less | 1 - bower_components/bootstrap/less/variables.less | 6 +- bower_components/bootstrap/package.js | 22 +++ bower_components/bootstrap/package.json | 46 +++-- 79 files changed, 727 insertions(+), 548 deletions(-) create mode 100644 bower_components/bootstrap/package.js (limited to 'bower_components') diff --git a/bower_components/bootstrap-sass-official/.bower.json b/bower_components/bootstrap-sass-official/.bower.json index 315983f9..7ed1cac7 100644 --- a/bower_components/bootstrap-sass-official/.bower.json +++ b/bower_components/bootstrap-sass-official/.bower.json @@ -1,6 +1,6 @@ { "name": "bootstrap-sass", - "version": "3.3.3", + "version": "3.3.4", "homepage": "https://github.com/twbs/bootstrap-sass", "authors": [ "Thomas McDonald", @@ -37,13 +37,13 @@ "dependencies": { "jquery": ">= 1.9.0" }, - "_release": "3.3.3", + "_release": "3.3.4", "_resolution": { "type": "version", - "tag": "v3.3.3", - "commit": "ed0a2bfdc9e33c3f350306252ee8da9da47d6107" + "tag": "v3.3.4", + "commit": "283bb45d032a94f66cca0888dc9cbc93f44353e0" }, "_source": "git://github.com/twbs/bootstrap-sass.git", - "_target": "~3.3.2", + "_target": "~3.3.4", "_originalSource": "bootstrap-sass-official" } \ No newline at end of file diff --git a/bower_components/bootstrap-sass-official/CHANGELOG.md b/bower_components/bootstrap-sass-official/CHANGELOG.md index 7d31b5f2..5dff7ff9 100644 --- a/bower_components/bootstrap-sass-official/CHANGELOG.md +++ b/bower_components/bootstrap-sass-official/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.3.4 + +No Sass-specific changes. + +Framework version: Bootstrap **v3.3.4** + ## 3.3.3 This is a re-packaged release of 3.3.2.1 (v3.3.2+1). diff --git a/bower_components/bootstrap-sass-official/README.md b/bower_components/bootstrap-sass-official/README.md index 2499ab02..a5180d32 100644 --- a/bower_components/bootstrap-sass-official/README.md +++ b/bower_components/bootstrap-sass-official/README.md @@ -1,4 +1,8 @@ -# Bootstrap for Sass [![Gem Version](https://badge.fury.io/rb/bootstrap-sass.svg)](http://badge.fury.io/rb/bootstrap-sass) [![Bower Version](https://badge.fury.io/bo/bootstrap-sass.svg)](http://badge.fury.io/bo/bootstrap-sass) [![Build Status](http://img.shields.io/travis/twbs/bootstrap-sass.svg)](http://travis-ci.org/twbs/bootstrap-sass) +# Bootstrap for Sass +[![Gem Version](https://badge.fury.io/rb/bootstrap-sass.svg)](http://badge.fury.io/rb/bootstrap-sass) +[![npm version](https://img.shields.io/npm/v/bootstrap-sass.svg?style=flat)](https://www.npmjs.com/package/bootstrap-sass) +[![Bower Version](https://badge.fury.io/bo/bootstrap-sass.svg)](http://badge.fury.io/bo/bootstrap-sass) +[![Build Status](http://img.shields.io/travis/twbs/bootstrap-sass.svg)](http://travis-ci.org/twbs/bootstrap-sass) `bootstrap-sass` is a Sass-powered version of [Bootstrap](http://github.com/twbs/bootstrap), ready to drop right into your Sass powered applications. @@ -17,13 +21,13 @@ Please see the appropriate guide for your environment of choice: In your Gemfile you need to add the `bootstrap-sass` gem, and ensure that the `sass-rails` gem is present - it is added to new Rails applications by default. ```ruby -gem 'bootstrap-sass', '~> 3.3.3' +gem 'bootstrap-sass', '~> 3.3.4' gem 'sass-rails', '>= 3.2' ``` `bundle install` and restart your server to make the files available through the pipeline. -Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`: +Import Bootstrap styles in `app/assets/stylesheets/application.scss`: ```scss // "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables" @@ -33,11 +37,11 @@ Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`: `bootstrap-sprockets` must be imported before `bootstrap` for the icon fonts to work. -Make sure the file has `.css.scss` extension (or `.css.sass` for Sass syntax). If you have just generated a new Rails app, +Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Rails app, it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it: ```console -$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss +$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss ``` Then, remove all the `//= require` and `//= require_tree` statements from the file. Instead, use `@import` to import Sass files. @@ -51,6 +55,11 @@ Require Bootstrap Javascripts in `app/assets/javascripts/application.js`: //= require bootstrap-sprockets ``` +`bootstrap-sprockets` and `bootstrap` [should not both be included](https://github.com/twbs/bootstrap-sass/issues/829#issuecomment-75153827) in `application.js`. + +`bootstrap-sprockets` provides individual Bootstrap Javascript files (`alert.js` or `dropdown.js`, for example), while +`bootstrap` provides a concatenated file containing all Bootstrap Javascripts. + #### Bower with Rails When using [bootstrap-sass Bower package](#c-bower) instead of the gem in Rails, configure assets in `config/application.rb`: @@ -64,10 +73,10 @@ end # Precompile Bootstrap fonts config.assets.precompile << %r(bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$) # Minimum Sass number precision required by bootstrap-sass -::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max +::Sass::Script::Value::Number.precision = [8, ::Sass::Script::Value::Number.precision].max ``` -Replace Bootstrap `@import` statements in `application.css.scss` with: +Replace Bootstrap `@import` statements in `application.scss` with: ```scss $icon-font-path: "bootstrap-sass/assets/fonts/bootstrap/"; @@ -188,7 +197,7 @@ Precision is set for Rails and Compass automatically. When using ruby Sass compiler standalone or with the Bower version you can set it with: ```ruby -::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max +::Sass::Script::Value::Number.precision = [8, ::Sass::Script::Value::Number.precision].max ``` #### Sass: Autoprefixer @@ -241,7 +250,7 @@ When using bootstrap-sass with Compass, Sprockets, or Mincer, you **must** impor ### Sass -Import Bootstrap into a Sass file (for example, application.css.scss) to get all of Bootstrap's styles, mixins and variables! +Import Bootstrap into a Sass file (for example, application.scss) to get all of Bootstrap's styles, mixins and variables! ```scss @import "bootstrap"; @@ -265,7 +274,20 @@ $navbar-default-color: $light-orange; ## Version -`bootstrap-sass` version reflects the upstream version, with an additional number for Sass-specific changes. +Bootstrap for Sass version may differ from the upstream version in the last number, known as +[MINOR](http://semver.org/spec/v2.0.0.html). The minor version may be ahead of the corresponding upstream minor. +This happens when we need to release Sass-specific changes. + +Before v3.3.2, Bootstrap for Sass version used to reflect the upstream version, with an additional number for +Sass-specific changes. This was changed due to Bower and npm compatibility issues. + +The upstream versions vs the Bootstrap for Sass versions are: + +| Upstream | Sass | +|---------:|--------:| +| 3.3.4 | 3.3.4 | +| 3.3.2 | 3.3.3 | +| <= 3.3.1 | 3.3.1.x | Always refer to [CHANGELOG.md](/CHANGELOG.md) when upgrading. @@ -295,7 +317,7 @@ To convert a specific branch or version, pass the branch name or the commit hash The latest converter script is located [here][converter] and does the following: * Converts upstream bootstrap LESS files to its matching SCSS file. -* Copies all upstream JavaScript into `assets/javascripts/bootstrap`, an Sprockets manifest at `assets/javascripts/bootstrap-sprockets.js`, and a concatenation at `assets/javascripts/bootstrap.js`. +* Copies all upstream JavaScript into `assets/javascripts/bootstrap`, a Sprockets manifest at `assets/javascripts/bootstrap-sprockets.js`, and a concatenation at `assets/javascripts/bootstrap.js`. * Copies all upstream font files into `assets/fonts/bootstrap`. * Sets `Bootstrap::BOOTSTRAP_SHA` in [version.rb][version] to the branch sha. @@ -316,15 +338,15 @@ and a [significant number of other contributors][contrib]. ## You're in good company bootstrap-sass is used to build some awesome projects all over the web, including -[Diaspora](http://diasporaproject.org/), [rails_admin](https://github.com/sferik/rails_admin), +[Diaspora](https://diasporafoundation.org/), [rails_admin](https://github.com/sferik/rails_admin), Michael Hartl's [Rails Tutorial](http://railstutorial.org/), [gitlabhq](http://gitlabhq.com/) and -[kandan](http://kandanapp.com/). +[kandan](http://kandan.io/). [converter]: https://github.com/twbs/bootstrap-sass/blob/master/tasks/converter/less_conversion.rb [version]: https://github.com/twbs/bootstrap-sass/blob/master/lib/bootstrap-sass/version.rb [contrib]: https://github.com/twbs/bootstrap-sass/graphs/contributors [antirequire]: https://github.com/twbs/bootstrap-sass/issues/79#issuecomment-4428595 [jsdocs]: http://getbootstrap.com/javascript/#transitions -[sass-precision]: http://sass-lang.com/documentation/Sass/Script/Number.html#precision-class_method +[sass-precision]: http://sass-lang.com/documentation/Sass/Script/Value/Number.html#precision%3D-class_method [mincer]: https://github.com/nodeca/mincer [autoprefixer]: https://github.com/ai/autoprefixer diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap-sprockets.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap-sprockets.js index 1abde496..37468b35 100644 --- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap-sprockets.js +++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap-sprockets.js @@ -4,9 +4,9 @@ //= require ./bootstrap/carousel //= require ./bootstrap/collapse //= require ./bootstrap/dropdown +//= require ./bootstrap/modal +//= require ./bootstrap/scrollspy //= require ./bootstrap/tab //= require ./bootstrap/transition -//= require ./bootstrap/scrollspy -//= require ./bootstrap/modal //= require ./bootstrap/tooltip //= require ./bootstrap/popover diff --git a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js index 4139b6fc..1c88b71e 100644 --- a/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js +++ b/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js @@ -1,5 +1,5 @@ /*! - * Bootstrap v3.3.2 (http://getbootstrap.com) + * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ @@ -17,7 +17,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: transition.js v3.3.2 + * Bootstrap: transition.js v3.3.4 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -77,7 +77,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: alert.js v3.3.2 + * Bootstrap: alert.js v3.3.4 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -96,7 +96,7 @@ if (typeof jQuery === 'undefined') { $(el).on('click', dismiss, this.close) } - Alert.VERSION = '3.3.2' + Alert.VERSION = '3.3.4' Alert.TRANSITION_DURATION = 150 @@ -172,7 +172,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: button.js v3.3.2 + * Bootstrap: button.js v3.3.4 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -192,7 +192,7 @@ if (typeof jQuery === 'undefined') { this.isLoading = false } - Button.VERSION = '3.3.2' + Button.VERSION = '3.3.4' Button.DEFAULTS = { loadingText: 'loading...' @@ -289,7 +289,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: carousel.js v3.3.2 + * Bootstrap: carousel.js v3.3.4 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -307,10 +307,10 @@ if (typeof jQuery === 'undefined') { 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)) @@ -320,7 +320,7 @@ if (typeof jQuery === 'undefined') { .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) } - Carousel.VERSION = '3.3.2' + Carousel.VERSION = '3.3.4' Carousel.TRANSITION_DURATION = 600 @@ -527,7 +527,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: collapse.js v3.3.2 + * Bootstrap: collapse.js v3.3.4 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -544,7 +544,8 @@ if (typeof jQuery === 'undefined') { var Collapse = function (element, options) { this.$element = $(element) this.options = $.extend({}, Collapse.DEFAULTS, options) - this.$trigger = $(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]') + this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + + '[data-toggle="collapse"][data-target="#' + element.id + '"]') this.transitioning = null if (this.options.parent) { @@ -556,13 +557,12 @@ if (typeof jQuery === 'undefined') { if (this.options.toggle) this.toggle() } - Collapse.VERSION = '3.3.2' + Collapse.VERSION = '3.3.4' Collapse.TRANSITION_DURATION = 350 Collapse.DEFAULTS = { - toggle: true, - trigger: '[data-toggle="collapse"]' + toggle: true } Collapse.prototype.dimension = function () { @@ -700,7 +700,7 @@ if (typeof jQuery === 'undefined') { var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) - if (!data && options.toggle && option == 'show') options.toggle = false + if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) if (typeof option == 'string') data[option]() }) @@ -731,7 +731,7 @@ if (typeof jQuery === 'undefined') { var $target = getTargetFromTrigger($this) var data = $target.data('bs.collapse') - var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this }) + var option = data ? 'toggle' : $this.data() Plugin.call($target, option) }) @@ -739,7 +739,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: dropdown.js v3.3.2 + * Bootstrap: dropdown.js v3.3.4 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -759,7 +759,7 @@ if (typeof jQuery === 'undefined') { $(element).on('click.bs.dropdown', this.toggle) } - Dropdown.VERSION = '3.3.2' + Dropdown.VERSION = '3.3.4' Dropdown.prototype.toggle = function (e) { var $this = $(this) @@ -812,7 +812,7 @@ if (typeof jQuery === 'undefined') { return $this.trigger('click') } - var desc = ' li:not(.divider):visible a' + var desc = ' li:not(.disabled):visible a' var $items = $parent.find('[role="menu"]' + desc + ', [role="listbox"]' + desc) if (!$items.length) return @@ -901,7 +901,7 @@ if (typeof jQuery === 'undefined') { }(jQuery); /* ======================================================================== - * Bootstrap: modal.js v3.3.2 + * Bootstrap: modal.js v3.3.4 * http://getbootstrap.com/javascript/#modals * ======================================================================== * Copyright 2011-2015 Twitter, Inc. @@ -916,12 +916,15 @@ if (typeof jQuery === 'undefined') { // ====================== var Modal = function (element, options) { - this.options = options - this.$body = $(document.body) - this.$element = $(element) - this.$backdrop = - this.isShown = null - this.scrollbarWidth = 0 + this.options = options + this.$body = $(document.body) + this.$element = $(element) + this.$dialog = this.$element.find('.modal-dialog') + this.$backdrop = null + this.isShown = null + this.originalBodyPad = null + this.scrollbarWidth = 0 + this.ignoreBackdropClick = false if (this.options.remote) { this.$element @@ -932,7 +935,7 @@ if (typeof jQuery === 'undefined') { } } - Modal.VERSION = '3.3.2' + Modal.VERSION = '3.3.4' Modal.TRANSITION_DURATION = 300 Modal.BACKDROP_TRANSITION_DURATION = 150 @@ -966,6 +969,12 @@ if (typeof jQuery === 'undefined') { this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) + this.$dialog.on('mousedown.dismiss.bs.modal', function () { + that.$element.one('mouseup.dismiss.bs.modal', function (e) { + if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true + }) + }) + this.backdrop(function () { var transition = $.support.transition && that.$element.hasClass('fade') @@ -977,7 +986,6 @@ if (typeof jQuery === 'undefined') { .show() .scrollTop(0) - if (that.options.backdrop) that.adjustBackdrop() that.adjustDialog() if (transition) { @@ -993,7 +1001,7 @@ if (typeof jQuery === 'undefined') { var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget }) transition ? - that.$element.find('.modal-dialog') // wait for modal to slide in + that.$dialog // wait for modal to slide in .one('bsTransitionEnd', function () { that.$element.trigger('focus').trigger(e) }) @@ -1022,6 +1030,9 @@ if (typeof jQuery === 'undefined') { .removeClass('in') .attr('aria-hidden', true) .off('click.dismiss.bs.modal') + .off('mouseup.dismiss.bs.modal') + + this.$dialog.off('mousedown.dismiss.bs.modal') $.support.transition && this.$element.hasClass('fade') ? this.$element @@ -1082,13 +1093,18 @@ if (typeof jQuery === 'undefined') { var doAnimate = $.support.transition && animate this.$backdrop = $('