2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Merge pull request #16024 from twbs/unnecessary-parsing

avoid unnecessary HTML string building+parsing
This commit is contained in:
Chris Rebert
2015-03-18 22:28:07 -07:00
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -190,7 +190,8 @@
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) {