Update to motools 1.4.5

Fix Firefox 11 issues.
This commit is contained in:
Paulo Gustavo Veiga
2012-04-01 19:41:19 -03:00
parent a813531731
commit 56d6f125c6
30 changed files with 3031 additions and 2579 deletions

View File

@@ -20,13 +20,14 @@ MooDialog.implement('options', {
property: 'opacity',
duration: this.options.duration
}).set(0);
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick) this.overlay.addEvent('click', this.close.bind(this));
},
onBeforeOpen: function(wrapper){
this.overlay = new Overlay(this.options.inject, {
duration: this.options.duration
});
if (this.options.closeOnOverlayClick)
this.overlay.addEvent('click', this.close.bind(this));
this.overlay.open();
this.fx.start(1).chain(function(){
this.fireEvent('show');
@@ -34,7 +35,7 @@ MooDialog.implement('options', {
},
onBeforeClose: function(wrapper){
this.overlay.close();
this.overlay.destroy();
this.fx.start(0).chain(function(){
this.fireEvent('hide');
}.bind(this));