As far as I know there is no such thing in prototype, but definitely
it would be usefull sometimes! When I need a single method from
Prototype in a jQuery-driven site (let's say I want to use unescapeHTML
()) I just copy-paste implementation... which is sometimes easy,
sometimes hard.
I'm looking
Hi there.
I have a prototype class that has these two methods:
hide_precollapsed: function(){
if(this.get_state() != visible){
this.target.hide();
};
},
get_state: function(){
var state = hidden;
Hi,
My problem is that the +get_state+ method is not returning the
ttstate/tt correctly.
Am I doing something wrong?
Your `get_state` function, as coded, will always return hidden.
That's because it _initiates_ an asynchronous request to the server
and then returns. Eventually the
IE's version is redefined elsewhere.
Best,
Tobie
On Dec 1, 12:37 pm, Davide daw...@gmail.com wrote:
HI All,
yesterday while looking in the javascript source of JS I noticed that
in the function getStyle: function(element, style) there is this piece
of code.
if (!value || value == 'auto')