Skip to content

Commit

Permalink
remove options check in modal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Oct 3, 2011
1 parent b2b8a78 commit f8be7a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/bootstrap-modal.js
Expand Up @@ -57,12 +57,10 @@
this.$element = $(content)
.delegate('.close', 'click.modal', $.proxy(this.hide, this))

if ( options ) {
$.extend( this.settings, options )
$.extend( this.settings, options )

if ( this.settings.show ) {
this.show()
}
if ( this.settings.show ) {
this.show()
}

return this
Expand Down

0 comments on commit f8be7a8

Please sign in to comment.