Skip to content

Commit

Permalink
passing options to close method
Browse files Browse the repository at this point in the history
  • Loading branch information
tseabra-rocket committed Nov 24, 2015
1 parent 3480270 commit 59330d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.the-modal.js
Expand Up @@ -170,7 +170,7 @@
if(localOptions.closeOnEsc) {
$(document).bind('keyup.'+pluginNamespace, function(e){
if(e.keyCode === 27) {
$.modal().close();
$.modal().close(localOptions);
}
});
}
Expand All @@ -180,7 +180,7 @@
e.stopPropagation();
});
$('.' + localOptions.overlayClass).on('click.' + pluginNamespace, function(e){
$.modal().close();
$.modal().close(localOptions);
});
}

Expand Down

0 comments on commit 59330d8

Please sign in to comment.