In the same way of
Prototype.K and Prototype.emptyFunction
I'm ofter using function that may be integrated in Prototype like
that :
Prototype.True = function() {
return true;
}
and
Prototype.False = function() {
return false;
}
With that, it is easyier to code, and limits memory usage. It
It is indeed convenient, but I find myself rarely using it.
Could you share your use cases?
- kangax
On May 3, 6:22 am, bubbatls <[EMAIL PROTECTED]> wrote:
> In the same way of
> Prototype.K and Prototype.emptyFunction
>
> I'm ofter using function that may be integrated in Prototype like
> that
How can i select or have a reference to a field in a form where the
focus is, without specifying it directly by the id?
But rather by obeserving the form, to see which field has focus.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Thanks for the tests Geoff,
I have uploaded them here: http://protolific.net/memory_leak_testcase.zip
I patched the Prototyep 1.5.1 file.
There is a second file named "_prototype_1_5_1.js" which is my latest
git version compiles (so it is really "1.6.0.2+" with the patch in it
is as well.
I sti
I use it for
- setting the onselectstart, oncontextmenu on some html element,
- when function may take a function as parameter, I found often
usefull to defaulting this function by one of those.
- when i define a Class with "abstract" method.
Checking my code, i can say that I use False 10 times
I think kangax used to have something similar in his:
http://github.com/kangax/protolicious/tree/master/helpers.js
Though I cannot seem to find it now :)
- JDD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Protot