1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-30 23:36:47 +02:00

avoid unnecessary HTML string building+parsing

This commit is contained in:
Chris Rebert
2015-03-09 06:47:34 -07:00
parent 253dfc0d3d
commit a14665e73e
2 changed files with 6 additions and 2 deletions

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) {