Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Source/Fx/Fx.Reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Fx.Reveal = new Class({
this.callChain();
}.bind(this));

this.start(zero);
this.start( this.cleanStyles(zero) );
} else {
this.callChain.delay(10, this);
this.fireEvent('complete', this.element);
Expand Down Expand Up @@ -143,7 +143,7 @@ Fx.Reveal = new Class({
});
zero.overflow = 'hidden';

this.element.setStyles(zero);
this.element.setStyles( this.cleanStyles(zero) );

var hideThese = hideTheseOf(this);
if (hideThese) hideThese.setStyle('visibility', 'hidden');
Expand All @@ -157,7 +157,7 @@ Fx.Reveal = new Class({
this.fireEvent('show', this.element);
}.bind(this));

this.start(startStyles);
this.start( this.cleanStyles( startStyles ) );
} else {
this.callChain();
this.fireEvent('complete', this.element);
Expand Down Expand Up @@ -187,6 +187,14 @@ Fx.Reveal = new Class({
this.hiding = false;
this.showing = false;
return this;
},

cleanStyles: function( styles ){
for( style in styles ){
if( style.substring(0,5) == 'total' ) delete styles[style];
else if( style.substring(0,8) == 'computed' ) delete styles[style];
}
return styles;
}

});
Expand Down