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 more often than True On May 3, 10:00 pm, kangax <[EMAIL PROTECTED]> wrote: > 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 : > > > Prototype.True = function() { > > return true; > > > } > > > and > > > Prototype.False = function() { > > return false; > > > } > > > With that, it is easyier to code, and limits memory usage. It can even > > improve performance by adding > > > Prototype.False.bind = Prototype.False.bindAsEventListener = function() > > {return this} > > > I checked quickly the code of prototype and it is not really usefull > > inside it. Maybe I'm not the only one to use this kind of function > > really often- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---