Browse files

overlay emit close on close

  • Loading branch information...
1 parent d75189a commit 8cd67991b3fb81154e77fd468f85b00860faf706 @pgherveou pgherveou committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/components/overlay/overlay.js
View
2 lib/components/overlay/overlay.js
@@ -1,4 +1,3 @@
-
/**
* Expose `Overlay`.
*/
@@ -33,6 +32,7 @@ function Overlay(options) {
this.el.appendTo('body');
if (this.closable) {
this.el.click(function(){
+ self.emit('close');
self.hide();
});
}

0 comments on commit 8cd6799

Please sign in to comment.