Skip to content

Commit

Permalink
Fix closeOnOverlayClick option, default should be true
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian committed May 27, 2010
1 parent 8d27bb3 commit d3bbde3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/MooDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var MooDialog = new Class({
useEscKey: true,
disposeOnClose: true,
closeButton: true,
closeOnOverlayClick: false,
closeOnOverlayClick: true,
useScrollBar: true,
fx: {
type: 'tween',
Expand Down Expand Up @@ -124,7 +124,7 @@ var MooDialog = new Class({
this.overlay = new Overlay(document.body, {
duration: this.options.fx.options.duration
});
if (!this.options.closeOnOverlayClick) {
if (options.closeOnOverlayClick) {
this.overlay.addEvent('click', this.close.bind(this));
}
},
Expand Down

0 comments on commit d3bbde3

Please sign in to comment.