This project is archived and is in readonly mode.

#509 ✓resolved
tbela99

Fx.Reveal.set displays hidden elements

Reported by tbela99 | February 6th, 2011 @ 01:11 PM | in 1.3.1.1

Hi,

element.set('reveal', {...}) is changing element.style.display property from none to something else, causing hidden elements to become visible.

the fiddle is here http://jsfiddle.net/tbela99/hj2Pw/1/

here is the old code,

Element.Properties.reveal = {

set: function(options){

this.get('reveal').cancel().setOptions(options);
return this;

}, here is my proposal for the fix,

Element.Properties.reveal = {

set: function(options){

var reveal = this.get('reveal');

if(reveal) reveal.cancel();

this.store('reveal', new Fx.Reveal(this, options));
return this;

},

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages