Skip to content

Commit

Permalink
dialog emit close when overlay emit close
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jul 11, 2012
1 parent 8cd6799 commit c36d182
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/components/dialog/dialog.js
Expand Up @@ -149,8 +149,10 @@ Dialog.prototype.overlay = function(){
.on('hide', function(){ .on('hide', function(){
self.closedOverlay = true; self.closedOverlay = true;
self.emit('close'); self.emit('close');
self.hide(); self.hide();})
}); .on('close', function(){
self.emit('close');
});
return this; return this;
}; };


Expand Down

0 comments on commit c36d182

Please sign in to comment.