diff options
| author | Bootstrap's Grunt bot <[email protected]> | 2015-03-19 05:30:30 +0000 |
|---|---|---|
| committer | Bootstrap's Grunt bot <[email protected]> | 2015-03-19 05:30:30 +0000 |
| commit | eece194763b5ab7ae84bacab34e9ae5590b806cf (patch) | |
| tree | bb89feb40ea56496330bc45f62bfa3c5646b5cc5 /docs/dist/js/bootstrap.js | |
| parent | 9aad9a416410498aa54e8b7d6cd966008d74d894 (diff) | |
| download | bootstrap-eece194763b5ab7ae84bacab34e9ae5590b806cf.tar.xz bootstrap-eece194763b5ab7ae84bacab34e9ae5590b806cf.zip | |
automatic `grunt dist`
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 1c88b71e8..51be48730 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -774,7 +774,10 @@ if (typeof jQuery === 'undefined') { if (!isActive) { if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { // if mobile we use a backdrop because click events don't delegate - $('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus) + $(document.createElement('div')) + .addClass('dropdown-backdrop') + .insertAfter($(this)) + .on('click', clearMenus) } var relatedTarget = { relatedTarget: this } @@ -1092,7 +1095,8 @@ if (typeof jQuery === 'undefined') { if (this.isShown && this.options.backdrop) { var doAnimate = $.support.transition && animate - this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />') + this.$backdrop = $(document.createElement('div')) + .addClass('modal-backdrop ' + animate) .appendTo(this.$body) this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) { |
