Open
Description
MooTools.More = {
'version': '1.4.0.1',
'build': 'a4244edf2aa97ac8a196fc96082dd35af1abab87'
};
Fx.Slide Open Property is not reporting properly.
Consider the following example:
var collapse = new Fx.Slide(element, {
duration: 500,
transition: Fx.Transitions.linear,
link: 'cancel',
onComplete: function(){
console.log(collapse.open); // Will return the opposite of what is expected
}
});
console.log(collapse.open); // Will report true "open" as expected
collapse.hide();
console.log(collapse.open); // Will report false "closed" as expected
collapse.slideIn(); // Will report false onComplete expected true "open"
collapse.slideOut(); // Will report true onComplete expected false "closed"
collapse.toggle(); // Will report false onComplete expected true "open"
I dont have time to dive into the Fx.Slide code right now but if this is verified and not fixed by this weekend I will do my best to propose a solution in my down time.
Thanks
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/359941-fx-slide-open-property?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github).