Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- emit close when user click on overlay

- unbind document keydown on remove
  • Loading branch information...
commit 3d882ef75c8db4b1068a414c39e63905c6028c6c 1 parent f9903c8
@pgherveou pgherveou authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/components/dialog/dialog.js
View
2  lib/components/dialog/dialog.js
@@ -148,6 +148,7 @@ Dialog.prototype.overlay = function(){
.overlay({ closable: true })
.on('hide', function(){
self.closedOverlay = true;
+ self.emit('close');
self.hide();
});
return this;
@@ -248,5 +249,6 @@ Dialog.prototype.hide = function(ms){
Dialog.prototype.remove = function(){
this.emit('hide');
this.el.remove();
+ $(document).unbind('keydown.dialog');
return this;
};
Please sign in to comment.
Something went wrong with that request. Please try again.