Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dialog emit close when overlay emit close

  • Loading branch information...
commit c36d182e10bd252bff5bae02a0c9f0ea6eb8321b 1 parent 8cd6799
@pgherveou pgherveou authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/components/dialog/dialog.js
View
6 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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.