Permalink
Browse files

dialog emit close when overlay emit close

  • Loading branch information...
1 parent 8cd6799 commit c36d182e10bd252bff5bae02a0c9f0ea6eb8321b @pgherveou pgherveou committed Jul 11, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/components/dialog/dialog.js
@@ -149,8 +149,10 @@ Dialog.prototype.overlay = function(){
.on('hide', function(){
self.closedOverlay = true;
self.emit('close');
- self.hide();
- });
+ self.hide();})
+ .on('close', function(){
+ self.emit('close');
+ });
return this;
};

0 comments on commit c36d182

Please sign in to comment.