Skip to content

Commit

Permalink
Issue #3 - Adding event to .hide() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Butz committed Jul 26, 2012
1 parent 87f8a8a commit c9b5229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ $(window).load(function()
var that = this
if (this.isShown && this.options.keyboard) {
$(document).on('keyup.dismiss.lightbox', function ( e ) {
e.which == 27 && that.hide()
e.which == 27 && that.hide(e)
})
} else if (!this.isShown) {
$(document).off('keyup.dismiss.lightbox')
Expand Down

0 comments on commit c9b5229

Please sign in to comment.