[Prototype-core] New method on Element

2008-06-30 Thread dobby
Hi, The show, hide, toggle methods are great on the element object but it would also be nice to have a setVisisble(boolean) method. This allows you to set the visibility of an element depending on a Boolean expression. With the current api you have to if else this behavior. Example: $("myelemen

[Prototype-core] Re: New method on Element

2008-07-01 Thread dobby
Thanks for the reply, had the same answer here. They are looking into it to supporting a boolean operator on the toggle method. http://prototype.lighthouseapp.com/projects/8886/tickets/195-new-method-setvisible-boolean-on-element --~--~-~--~~~---~--~~ You receive